Problem with LPTHREAD_START_ROUTINE
Posted on 2002-05-28
I'm trying to call some procedure in separate thread. I'm using CreateThread function. However, I get an error message during compile:
error C2440: 'type cast' : cannot convert from '' to 'unsigned long (__stdcall*)(void *)'
Thread creation code looks like this:
Procedure declaration looks like this:
DWORD WINAPI My_Procedure_Name(LPVOID lpParam)
I've tried different declarations ('void', 'long WINAPI', even 'LPTHREAD_START_ROUTINE' :oP) It doesn't help.
I presume type cast (LPTHREAD_START_ROUTINE)... doesn't work somehow. Question is "why?" :o(