UINT ComputeThreadProc(LPVOID pParam)
{
volatile int nTemp; ::WaitForSingleObject(g_eventStart, INFINITE);
TRACE("starting computation\n"); char szDir[10] ="cdefghijk", szTemp[3] = "c:"; while (!IsFinded && !_chdir(szTemp))
{
if (::WaitForSingleObject(g_eventKill, 0) == WAIT_OBJECT_0) {
break ;
}
IsFinded = Findfile(TEXT (szTemp), m_sFileName) ;
szTemp[0]+=1 ;
}
if (!IsFinded)
{
MessageBox (NULL,"没有找到CS文件目录!", "CS服务器写入工具", MB_OK) ;
}
if(!::Findfile(szTemp, m_sFileName))
{
MessageBox(NULL,"search is fail!",NULL,MB_OK) ;
}
// Tell owner window we're finished
::PostMessage((HWND) pParam, WM_THREADFINISHED, 0, 0);
return 0; // ends the thread
}
我写了一个辅助线程,但是编译时显示'WM_THREADFINISHED' 没有声明,为什么啊?
D:\Microsoft Visual Studio\MyProjects\服务器 添加工具\服务器 添加工具Dlg.cpp(94) : error C2065: 'WM_THREADFINISHED' : undeclared identifier
Error executing cl.exe.
高手指点一下啊