解决 typedef void * POINTER_64 PVOID64; 问题

解决 typedef void * POINTER_64 PVOID64; 问题:

生成日志 生成 已启动: 项目: sssa,配置: Debug|Win32
命令行 正在创建临时文件“f:\我的引擎库\sssa\sssa\Debug\RSP00000521364016.rsp”,其内容为
[
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /Yu"stdafx.h" /Fp"Debug\sssa.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP .\sssa.cpp
]
正在创建命令行“cl.exe @f:\我的引擎库\sssa\sssa\Debug\RSP00000521364016.rsp /nologo /errorReport:prompt”
正在创建临时文件“f:\我的引擎库\sssa\sssa\Debug\RSP00000621364016.rsp”,其内容为
[
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /Yc"stdafx.h" /Fp"Debug\sssa.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP .\stdafx.cpp
]
正在创建命令行“cl.exe @f:\我的引擎库\sssa\sssa\Debug\RSP00000621364016.rsp /nologo /errorReport:prompt”
输出窗口 正在编译...
stdafx.cpp
c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: 语法错误 : 缺少“;”(在标识符“PVOID64”的前面)
c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5940) : error C2146: 语法错误 : 缺少“;”(在标识符“Buffer”的前面)
c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5940) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5940) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
结果 生成日志保存在“file://f:\我的引擎库\sssa\sssa\Debug\BuildLog.htm”
sssa - 5 个错误,0 个警告

 

解决方案:

Solution 1.
工具->选项->项目和解决方案->vc++目录
试试调换一下include的次序

不过估计一样
建议下载platformSDK,并安装,而不是使用2005自带psdk
个人意见,可能有错


Solution 2.
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;
在它之前加下:
#define POINTER_64 __ptr64

posted @ 2007-04-28 20:43  cxun  阅读(14750)  评论(5编辑  收藏  举报