Many partners update VS2010, or uninstall VS2012 installation 2010, when the Win32 Console PROJECT/MFC Project is established, "Link:fatal error LNK1123: Failed to convert to COFF: invalid or corrupted file".
Error Description:
1> Compiling resources ...
1> Compiling resource manifest ...
1> is linking ...
1>link:fatal Error LNK1123: Failed during conversion to COFF: invalid or corrupted file
1> build log saved in "File://e:\helloc\shapefill V11\shapefill\debug\shapefill.log"
1>shapefill-1 an error, 0 warnings
========== Rebuild: 0 succeeded, 1 failed, 0 skipped ==========
Solution:
The first step is to change the project-project Properties-Configuration Properties-connector-manifest file-embedded list "yes" to "no". If you can't solve the problem, go to step two.
Step two: Check to see if the computer is a 64bit operating system, and continue with the following actions.
Find out if there are two cvtres.exe.
C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\cvtres.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe
Right-click Properties-Details, view both version numbers, delete/rename older versions, or reset the path variable.
The root of the solution is the second step, after removing the old version of the Cvtres.exe, you do not need to set the configuration every time.
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/net/