windows核心编程第五版原代码编译错误,总是有102个错误
无论我编译原代码中的哪一个都是出现这样的错误。我在http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
下载了最新的SDK安装好,并在我的VC++ 6.0的 Tools -> Options -> Directories的Executable files下添加
D:\Program Files\Microsoft SDK\Bin和
D:\Program Files\Microsoft SDK\Bin\winnt
在Include files下添加了
D:\Program Files\Microsoft SDK\include
Library files下添加
D:\Program Files\Microsoft SDK\Lib
现在的MSDN能识别 NMHDR 编辑插件也能认识 NMHDR,但每个程序都出现了102个错误,如下:
--------------------Configuration: ErrorShow - Win32 Debug--------------------
Compiling...
ErrorShow.cpp
d:\program files\microsoft sdk\include\prsht.h(531) : error C2146: syntax error : missing ';' before identifier 'hdr'
d:\program files\microsoft sdk\include\prsht.h(531) : error C2501: 'NMHDR' : missing storage-class or type specifiers
d:\program files\microsoft sdk\include\prsht.h(531) : error C2501: 'hdr' : missing storage-class or type specifiers
d:\program files\microsoft sdk\include\commctrl.h(276) : error C2146: syntax error : missing ';' before identifier 'hdr'
d:\program files\microsoft sdk\include\commctrl.h(276) : error C2501: 'NMHDR' : missing storage-class or type specifiers
.
.
.
d:\program files\microsoft sdk\include\commctrl.h(4358) : error C2501: 'NMHDR' : missing storage-class or type specifiers
d:\program files\microsoft sdk\include\commctrl.h(4358) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.
哪位大虾能help me