积极答复者
Windows XP5.1环境中,Visual C++ 2008 应用向导创建MFC应用程序,不做任何更改,不能通过

问题
-
Windows XP5.1环境中,Visual C++ 2008 应用向导创建MFC应用程序,不做任何更改,不能通过,见如下生成日志;请问解决办法。
请回至:wwgshx2009@sina.com
生成日志
生成 已启动: 项目: Ex_4,配置: Debug|Win32
命令行
正在创建临时文件“d:\Backup\我的文档\Visual Studio 2008\Projects\Ex_4\Ex_4\Debug\RSP0000052648244.rsp”,其内容为
[
/Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_AFXDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp"Debug\Ex_4.pch" /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP ".\MainFrm.cpp"".\Ex_4View.cpp"".\Ex_4Doc.cpp"".\Ex_4.cpp"".\ChildFrm.cpp"
]
正在创建命令行“cl.exe @"d:\Backup\我的文档\Visual Studio 2008\Projects\Ex_4\Ex_4\Debug\RSP0000052648244.rsp" /nologo /errorReport:prompt”
正在创建临时文件“d:\Backup\我的文档\Visual Studio 2008\Projects\Ex_4\Ex_4\Debug\RSP0000062648244.rsp”,其内容为
[
/Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_AFXDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yc"stdafx.h" /Fp"Debug\Ex_4.pch" /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP ".\stdafx.cpp"
]
正在创建命令行“cl.exe @"d:\Backup\我的文档\Visual Studio 2008\Projects\Ex_4\Ex_4\Debug\RSP0000062648244.rsp" /nologo /errorReport:prompt”
输出窗口
正在编译...
stdafx.cpp
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxv_w32.h(233) : error C2065: “DWORD_PTR”: 未声明的标识符
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxv_w32.h(233) : error C2143: 语法错误 : 缺少“;”(在“GetWindowThreadProcessId”的前面)
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlconv.h(92) : error C2061: 语法错误 : 标识符“LONG_PTR”
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlconv.h(92) : error C2146: 语法错误 : 缺少“(”(在标识符“LONG_PTR”的前面)
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlconv.h(92) : error C2061: 语法错误 : 标识符“LONG_PTR”
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlconv.h(92) : error C2146: 语法错误 : 缺少“(”(在标识符“LONG_PTR”的前面)
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atldebugapi.h(31) : error C2143: 语法错误 : 缺少“;”(在“__stdcall”的前面)
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atldebugapi.h(31) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atldebugapi.h(31) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atldebugapi.h(32) : error C2146: 语法错误 : 缺少“)”(在标识符“dwProcess”的前面)
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atldebugapi.h(32) : warning C4229: 使用了记时错误 : 忽略数据上的修饰符
c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atldebugapi.h(32) : error C2182: “AtlTraceCloseProcess”: 非法使用“void”类型
- 已移动 Sheng Jiang 蒋晟Moderator 2009年9月25日 14:30 Visual C++编译问题 (发件人:Visual Studio 相关讨论)
- 已编辑 Sheng Jiang 蒋晟Moderator 2009年9月25日 16:00 删除无关信息
答案
-
你好!
请问你的XP是原版的吗?这个是系统环境的问题!
周雪峰- 已标记为答案 VisualElevenModerator 2011年12月21日 2:38
-
>Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions
看起来SDK版本十分的旧。怎么不用VS2008自带的Vista SDK升级版?
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 VisualElevenModerator 2011年12月21日 2:38
全部回复
-
你好!
请问你的XP是原版的吗?这个是系统环境的问题!
周雪峰- 已标记为答案 VisualElevenModerator 2011年12月21日 2:38
-
>Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions
看起来SDK版本十分的旧。怎么不用VS2008自带的Vista SDK升级版?
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 VisualElevenModerator 2011年12月21日 2:38