64,646
社区成员
发帖
与我相关
我的任务
分享
static CAPP *g_poAPP = 0;
extern "C"
{
void *NewAPP()
{
if (NULL == g_poAPP)
{
g_poAPP = new CAPP();
}
return g_poAPP;
}
void DeleteAPP()
{
if (NULL != g_poAPP)
{
delete g_poAPP;
g_poAPP = NULL;
}
}
}
CAPP是个类;