In our development projects, there may be cases where debugging cannot be done on this machine. At this time we typically use VM (VMware) to build a virtual machine environment, and then put the compiled program in the virtual machine environment to perform debugging. In some cases, however, whether we compile a debug or release version, it is reported in the virtual machine environment that the application could not be started because the application was configured incorrectly. Reinstalling the application may correct the problem. "(The application has failed to start because it side-by-side configuration is incorrect. Please, the application event log or use the command-line sxstrace.exe for more detail.) Such a mistake. Reprint please indicate the source.
Before I encountered such a problem, it is generally believed that several CRT libraries are not copied to the virtual machine environment. But this method did not work for the scene that I met, so I mounted the development environment VS2005 of my program in the virtual machine. However, the files generated in the real machine can still not run in the virtual machine, still reported the above error.
In fact, Microsoft on its website provides a solution, but also very simple. I can not find the original address, I only for my VS2005 made a solution for example.
1 Establish a setup program.
2 Project Files add the merge Module
3 from the system disk: \program Files\Common Files\merge Modules Choose to add the required files
Because my IDE environment is XP (32bit) +vs2005, I chose the following files (all vc80+x86 files in my environment, which may be different in different environments)
Policy_8_0_microsoft_vc80_openmp_x86.msm
Policy_8_0_microsoft_vc80_mfcloc_x86.msm
Policy_8_0_microsoft_vc80_mfc_x86.msm
Policy_8_0_microsoft_vc80_debugopenmp_x86.msm
Policy_8_0_microsoft_vc80_debugmfc_x86.msm
Policy_8_0_microsoft_vc80_debugcrt_x86.msm
Policy_8_0_microsoft_vc80_crt_x86.msm
Policy_8_0_microsoft_vc80_atl_x86.msm
Microsoft_vc80_openmp_x86.msm
Microsoft_vc80_mfcloc_x86.msm
Microsoft_vc80_mfc_x86.msm
Microsoft_vc80_debugopenmp_x86.msm
Microsoft_vc80_debugmfc_x86.msm
Microsoft_vc80_debugcrt_x86.msm
Microsoft_vc80_crt_x86.msm
Microsoft_vc80_atl_x86.msm
4 Generate debug and release files
5 Installing the files generated in the virtual machine in the previous step
After the above steps, we make the debug and release version of the program can be in the virtual machine operation.
Thank you for reading, I hope to help you, thank you for your support for this site!