After the program generated in the VC ++ 2005 environment is placed on a machine without the VC environment installed, sometimes the program cannot be executed. The prompt is: if the application configuration is incorrect and cannot be started, re-installing the application may solve the problem.
In fact, reinstallation cannot solve the problem. One solution is to view the * exe. Intermediate. manifest file. For example, the file content is:
<? XML version = '1. 0' encoding = 'utf-8' standalone = 'Yes'?>
<Assembly xmlns = 'urn: Schemas-Microsoft-com: ASM. V1 'manifestversion = '1. 0'>
<Dependency>
<Dependentassembly>
<Assemblyidentity type = 'win32 'name = 'Microsoft. vc80.crt' version = '8. 0.50727.762 'processorarchitecture = 'x86' publickeytoken = '1fc8b3b9a1e18e3b '/>
</Dependentassembly>
</Dependency>
<Dependency>
<Dependentassembly>
<Assemblyidentity type = 'win32 'name = 'Microsoft. vc80.mfc' version = '8. 0.50727.762 'processorarchitecture = 'x86' publickeytoken = '1fc8b3b9a1e18e3b '/>
</Dependentassembly>
</Dependency>
<Dependency>
<Dependentassembly>
<Assemblyidentity type = 'win32 'name = 'Microsoft. vc80.debugcrt' version = '8. 0.50727.762 'processorarchitecture = 'x86' publickeytoken = '1fc8b3b9a1e18e3b '/>
</Dependentassembly>
</Dependency>
</Assembly>
Note the three keywords in this file: Microsoft. vc80.crt, Microsoft. vc80.mfc and Microsoft. vc80.debugcrt. Find .... under the "Program Files" Microsoft Visual Studio 8 "VC" redist folder, find the subfolders of these names, copy all the files under them to the EXE file you want to publish, and package them together. These files are mfc80.dll, msvcr80.dll, msvcp80.dll, and Microsoft. vc80.crt. manifest. This error occurs because the support for these files is required on the target machine.