_beginthread
-
Hi, what problem in this code. //function call m_hThread1 =(HANDLE)_beginthreadex (NULL,0,RequestProcess1,NULL,0,&m_dwThreadId1); /fucntion unsigned __stdcall CIFakerDlg::RequestProcess1(void *dummmy) { statements } i got the following error error C2664: '_beginthreadex' : cannot convert parameter 3 from 'unsigned int (void *)' to 'unsigned int (__stdcall *)(void *)' None of the functions with this name in scope match the target type any one help tome. thanks in advance. Murali.M
-
Hi, what problem in this code. //function call m_hThread1 =(HANDLE)_beginthreadex (NULL,0,RequestProcess1,NULL,0,&m_dwThreadId1); /fucntion unsigned __stdcall CIFakerDlg::RequestProcess1(void *dummmy) { statements } i got the following error error C2664: '_beginthreadex' : cannot convert parameter 3 from 'unsigned int (void *)' to 'unsigned int (__stdcall *)(void *)' None of the functions with this name in scope match the target type any one help tome. thanks in advance. Murali.M
Make the RequestProcess1 as static function. Refer the SDK. The _beginthread is declared as unsigned long _beginthread( void( __cdecl *start_address )( void * ), unsigned stack_size, void *arglist ); Mahesh