出现
1>E:/VS2005/VC/PlatformSDK/include/winnt.h(222) : error C2146: 语法错误 : 缺少“;”(在标识符“PVOID64”的前面)
1>E:/VS2005/VC/PlatformSDK/include/winnt.h(222) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>E:/VS2005/VC/PlatformSDK/include/winnt.h(5940) : error C2146: 语法错误 : 缺少“;”(在标识符“Buffer”的前面)
1>E:/VS2005/VC/PlatformSDK/include/winnt.h(5940) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>E:/VS2005/VC/PlatformSDK/include/winnt.h(5940) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
就在winnt.h文件中报错的那句typedef之前加
#define POINTER_64 __ptr64
解决winnt.h编译错误

本文解决在Visual Studio 2005中使用winnt.h文件时出现的编译错误,包括语法错误和类型说明符缺失等问题。通过在typedef前添加#define POINTER_64 __ptr64来修正。
2600

被折叠的 条评论
为什么被折叠?



