Hello,
I need to implement a Thread in a Visual C++ 6.0 application. I've never done this, then I've been investigating, but I don't have any properly solution.
One of them is use CWinThread to comunicate to a Dialog but it has been already created. And the other possibility is create a thread with the function CreateThread(), but it gives me an error in the third parameter:
error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (class CDialogoPrimero *,void *)' to 'unsigned long (__stdcall *)(void
*)'
Would you mind pass me an example without this error?? the solution is doing the function "static" but it have another problems.
Thank you in advance.
I need to implement a Thread in a Visual C++ 6.0 application. I've never done this, then I've been investigating, but I don't have any properly solution.
One of them is use CWinThread to comunicate to a Dialog but it has been already created. And the other possibility is create a thread with the function CreateThread(), but it gives me an error in the third parameter:
error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (class CDialogoPrimero *,void *)' to 'unsigned long (__stdcall *)(void
*)'
Would you mind pass me an example without this error?? the solution is doing the function "static" but it have another problems.
Thank you in advance.
Comment