Visual Studio 2008调试程序时提示"生成“cmd.exe”时出错".
------ 已启动生成: 项目: bstore, 配置: Debug Win32 ------
正在编译资源清单...
正在链接...
正在嵌入清单...
项目 : error PRJ0003 : 生成“cmd.exe”时出错。
生成日志保存在“file://e:\来自C盘\我的文档\Visual Studio 2008
\Projects\bstore\bstore\Debug\BuildLog.htm”
first - 1 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
直接Visual Studio 2008中进行如下设置:
tools= > Options = > Projects and Solutions - > VC++ Directories page
把$(PATH)改成:$(SystemRoot)\System32;$(SystemRoot) ;$(SystemRoot)\System32\wbem
------ 已启动生成: 项目: bstore, 配置: Debug Win32 ------
正在嵌入清单...
生成日志保存在“file://e:\来自C盘\我的文档\Visual Studio 2008
\Projects\bstore\bstore\Debug\BuildLog.htm”
0727 - 0 个错误,0 个警告
========== 生成: 1 已成功, 0 已失败, 0 最新, 0 已跳过 ==========
本文详细介绍了如何解决使用Visual Studio 2008进行程序调试时遇到的生成cmd.exe时出错的问题。通过修改PATH环境变量,将$(SystemRoot)System32;$(SystemRoot);$(SystemRoot)System32wbem添加到路径中,可以解决该错误。同时提供了生成日志文件的位置和错误数量作为参考。
9679

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



