i tried to implement multi threading following the example https://www.tutorialspoint.com/mfc/mfc_multithreading.htm in this link.
UINT CCheckDlg::MyThreadProc(LPVOID Param) {
while (1){
Sleep(50); // would do some work here
}
return TRUE;
}
this is called by using
AfxBeginThread(MyThreadProc, 0);
the following errors appears
- E0304 no instance of overloaded function "AfxBeginThread" matches the argument list
- C3867 'CCheckDlg::MyThreadProc': non-standard syntax; use '&' to create a pointer to member