but what is the region, so that member function pointer is not pass to AfxBeginThread.
kartikthakre
Posts
-
Multithreading using AfxBeginThread -
Multithreading using AfxBeginThreadMyThreadProc is not a static function, it is simple member function.
-
Multithreading using AfxBeginThreadThanks for reply, But i already written that it is working for static and global function. What i want is that it is work for member function. I am waiting for reply thanks
-
Multithreading using AfxBeginThreadI am creating thread using AfxBeginThread in Visual Studio 2005 and the first parameter of this function is function pointer so i am passing member function pointer of that class but it gives error i.e. my code is: AfxBeginThread( &CMultithreadingInDialogDlg::MyThreadProc, GetSafeHwnd() ); in which MyThreadProc is member function. and the error is error C2665: 'AfxBeginThread' : none of the 2 overloads could convert all the argument types. but it is working if i am passing function pointer of any static function or global function thanks in advance.