MFC的VC ++ 6.0项目迁移到VS2010 [英] VC ++ 6.0 project of MFC migrated to VS2010

查看:552
本文介绍了MFC的VC ++ 6.0项目迁移到VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VC ++ 6.0项目迁移到VS2010,项目升级后,有数百个错误,系统文件头错误如下图所示:

C:\Program Files(x86)\\ \\ MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5):警告MSB8012:TargetPath(E:\GWUploadService \.\Debug \GWUploadService.exe)和链接器的OutputFile属性值(D:\ PACS \ GWUploadService.exe)不匹配。这可能导致项目生成错误。要解决此问题,请确保$(OutDir),$(TargetName)和$(TargetExt)属性的值与%(Link.OutputFile)中指定的值匹配。

1>链接:致命错误LNK1123:无法转换为COFF:文件无效或损坏



我尝试过:



我在互联网上检查了相关信息,但仍未解决,希望能给出一个好的答案,非常感谢。

解决方案

(OutDir),


(TargetName)和


(TargetExt)属性与%(Link.OutputFile)中指定的值匹配。

1>链接:致命错误LNK1123:无法转换为COFF:文件无效或损坏



我尝试过什么:



我查了一下互联网上的相关信息,但还是没有解决,希望能给出一个很好的答案,非常感谢。


VC ++ 6.0 project moved to VS2010, after the project upgrade, there are hundreds of errors are the system file header error as shown below:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(E:\GWUploadService\.\Debug\GWUploadService.exe) And the Linker's OutputFile property value (D: \ PACS \ GWUploadService.exe) does not match. This may cause the project to be generated incorrectly. To correct this problem, make sure that the values for the $ (OutDir), $ (TargetName), and $ (TargetExt) properties match the value specified in% (Link.OutputFile).
1>LINK : fatal error LNK1123: Failed to transition to COFF: File is invalid or corrupt

What I have tried:

I checked the relevant information on the Internet, but still did not solve, hoping to give a good answer, very grateful.

解决方案

(OutDir),


(TargetName), and


(TargetExt) properties match the value specified in% (Link.OutputFile).
1>LINK : fatal error LNK1123: Failed to transition to COFF: File is invalid or corrupt

What I have tried:

I checked the relevant information on the Internet, but still did not solve, hoping to give a good answer, very grateful.


这篇关于MFC的VC ++ 6.0项目迁移到VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆