阅读更多
btnThread是XXXForm_Dlg的public成员函数
static unsigned __stdcall runThread(void* pArguments)
//static void __cdecl runThread(void* pArguments)
{
(( CInterLockFrom_Dlg *)pArguments)->btnThread();
return NULL;
}
void XXXXFrom_Dlg::OnBtnUpload()
{
//_beginthreadex(0,0,&XXXXFrom_Dlg::btnThread,(void*)this,0,0);
_beginthreadex( NULL, 0, &runThread, (void*)this, 0, NULL );
//HANDLE m_hThread=CreateThread(NULL,NULL,btnThread, (LPVOID)this,NULL,NULL);
//_beginthread(runThread,0,(void*)this);