《WINDOWS核心编程》的第一个源代码ErrorShow编译通不过,
提示信息如下:
--------------------Configuration: 01 ErrorShow - Win32 Debug--------------------
Compiling...
ErrorShow.cpp
You are not using the latest Platform SDK header/library 
files. This may prevent the project from building correctly.
d:\书籍\vcmfc书籍\windows核心编程\核心源码\example\cmnhdr.h(212) : error C2065: 'GetWindowLongPtr' : undeclared identifier
d:\书籍\vcmfc书籍\windows核心编程\核心源码\example\cmnhdr.h(212) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
d:\书籍\vcmfc书籍\windows核心编程\核心源码\example\01-errorshow\errorshow.cpp(82) : error C2065: 'PCTSTR' : undeclared identifier
d:\书籍\vcmfc书籍\windows核心编程\核心源码\example\01-errorshow\errorshow.cpp(82) : error C2146: syntax error : missing ')' before identifier 'LocalLock'
d:\书籍\vcmfc书籍\windows核心编程\核心源码\example\01-errorshow\errorshow.cpp(82) : error C2059: syntax error : ')'
d:\书籍\vcmfc书籍\windows核心编程\核心源码\example\01-errorshow\errorshow.cpp(124) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsig
ned int,unsigned int,long)'
        None of the functions with this name in scope match the target type
Error executing cl.exe.01 ErrorShow.exe - 6 error(s), 0 warning(s)
提示说我的开发环境(头文件和库)不够新,我的操作系统是WINDOWS2000,编译环境为VC++6.0。
真的是这个环境太旧,还是我没有配置好?
我该如何改进开发环境才能编译通过《WINDOWS核心编程》的源代码?另外:在《WINDOWS核心编程》的公用头文件cmnhdr.h中有这么一处:#ifndef WT_EXECUTEINPERSISTENTIOTHREAD
#pragma message("You are not using the latest Platform SDK header/library ")
#pragma message("files. This may prevent the project from building correctly.")
#endif我发现很多程序都使用了类似WT_EXECUTEINPERSISTENTIOTHREAD,_M_IX86,__cplusplus等的预定义宏,这些宏有的在MSDN中可以
找到,有的在<Windows.h>或别的头文件中可以找到,有的两个地方都则找不到,让人不能把他们的意义完全摸透。请问一般这种
资料应该从何处获得?