【发布时间】:2010-06-21 18:13:04
【问题描述】:
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
【问题讨论】:
标签: c++ windows multithreading winapi