HANDLE hThread;
DWORD dwThreadId;
hThread = CreateThread(
NULL, // default security attributes
0, // use default stack size
MyThreadFunction, // thread function name
0, // argument to thread function
0, // use default creation flags
&dwThreadId); // returns the thread identifier <--Debugger takes me to this line?
该错误指定第三个参数,但是当我双击错误,它将我带到最后一个参数?
尝试运行MSDN CreateThread的例子http://msdn.microsoft.com/en-us/library/ms682453%28VS.85%29.aspx无法理解此错误创建一个线程
error C2664: 'CreateThread' : cannot convert parameter 3 from 'void (void)' to 'unsigned long (__stdcall *)(void *)'
None of the functions with this name in scope match the target type