[急]控制台程序调用GetThreadId,弹框告诉我kernel32.dll里面找不到????
我用VC建立一个控制台程序,没有选MFC的。我写了:
#include<windows.h>
#pragma comment(lib,"kernel32.lib")
然后在main里面去调用
GetThreadId()。编译没有问题。
运行时弹出一个红叉对话框,告诉我说
The procedure entry point GetThreadId could not be located in the dynamic link library KERNEL32.dll里面。
[解决办法]
GetThreadId Function Requirements
Client
Requires Windows Vista.
Server
Requires Windows Server 2008 or Windows Server 2003.
你机器是XP?
[解决办法]
为啥不用GetCurrentThreadId