明明定义了,编译时提示未定义,大家帮忙看看啊!
这是类中的成员函数void XX::CreateThread()
{
if(..)
HANDLE hThread=CreateThread(NULL,0,FUN,(LPVOID)pConnPaRam,0,NULL);
if((WaitForSingleObject(hThread,0)) == WAIT_OBJECT_0)
....
}
编译时提示hThread未定义
error C2065: 'hThread' : undeclared identifier