编译<<windows核心编程>>中的程序时会: Compiling... TimedMsgBox.cpp You are not using the latest Platform SDK header/library files. This may prevent the project from building correctly. f:\iso\windowskernelprograming\cmnhdr.h(212) : error C2065: 'GetWindowLongPtr' : undeclared identifier f:\iso\windowskernelprograming\cmnhdr.h(212) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier f:\iso\windowskernelprograming\11-timedmsgbox\timedmsgbox.cpp(65) : error C2065: 'CreateTimerQueueTimer' : undeclared identifier f:\iso\windowskernelprograming\11-timedmsgbox\timedmsgbox.cpp(73) : error C2065: 'DeleteTimerQueueTimer' : undeclared identifier Error executing cl.exe. Creating browse info file...11 TimedMsgBox.exe - 4 error(s), 0 warning(s)头文件中做了如下的设置, #define _WIN32_WINNT 0x0500 //#define WINVER 0x0500 如何解决这个问题呢? 难道只能用2003或更高才行吗?
最新的SDK是不是Windows® Server 2003 SP1 Platform SDK这个啊我看了需求好象是 This SDK does not support working with Microsoft Visual C/C++®, 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition我用win2k+vs6(sp6)不知道能不能装上用啊
Compiling...
TimedMsgBox.cpp
You are not using the latest Platform SDK header/library
files. This may prevent the project from building correctly.
f:\iso\windowskernelprograming\cmnhdr.h(212) : error C2065: 'GetWindowLongPtr' : undeclared identifier
f:\iso\windowskernelprograming\cmnhdr.h(212) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
f:\iso\windowskernelprograming\11-timedmsgbox\timedmsgbox.cpp(65) : error C2065: 'CreateTimerQueueTimer' : undeclared identifier
f:\iso\windowskernelprograming\11-timedmsgbox\timedmsgbox.cpp(73) : error C2065: 'DeleteTimerQueueTimer' : undeclared identifier
Error executing cl.exe.
Creating browse info file...11 TimedMsgBox.exe - 4 error(s), 0 warning(s)头文件中做了如下的设置,
#define _WIN32_WINNT 0x0500
//#define WINVER 0x0500
如何解决这个问题呢?
难道只能用2003或更高才行吗?
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm