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