pThrdModalDlg=::AfxBeginThread(CPublic::CallbackModalDlg,this,THREAD_PRIORITY_NORMAL,0,CREATE_SUSPENDED,NULL);
ASSERT(pThrdModalDlg);
(CPublic::m_hEventModelDlgCreated)=CreateEvent(NULL,TRUE,FALSE,_T("ModalDlgCreated"));
::ResetEvent(CPublic::m_hEventModelDlgCreated);
int d=ResumeThread(pThrdModalDlg);
我是mfc新手,初次接触多线程,ResumeThread函数返回值总是为-1,请大家帮忙分析一下原因,谢谢!
------解决思路----------------------
pThrdModalDlg->ResumeThread();
或者 ResumeThread(pThrdModalDlg->m_hThread)