Reprint: http://hi.baidu.com/kiropower/item/167d96c0f1d71242a9ba9481
Used to use VC6, packaging procedures as long as the corresponding Exe,dll can be run. Recently, a project has been developed with vc2005, using the previous experience, the required DLL and EXE together to the machine to run, a running program on the error, wrong message for the "application configuration is not correct, the program can not start, reinstall the application may solve the problem", so the Internet to check some information, Said to be less vc2005 run the library. So let colleagues also installed a vc2005 run-time library. After loading, run the program is still an error, the error message is "The application of normal initialization (0xc0150002) failed." Please click OK to terminate the program.
So again on the internet to look up data, are said to be missing the manifest file depends on the library, but the less a library. My program requires a Third-party library with Lua, luabind,boost libraries. Find three useful information from the system Tools--"Event Viewer,"
1:generate activation context is C:\Documents and settings\administrator\ desktop \release (3) \luabindd.dll failed. Reference error message: Operation completed successfully.
2:resolve Partial Assembly failed for Microsoft.VC80.DebugCRT. Reference error message: The referenced assembly is not installed on the system.
3: Unable to find the accessory assembly Microsoft.VC80.DebugCRT, the last error is that the referenced assembly is not installed on the system.
After seeing this information, I think it will be due to the failure of the Luabind library load. So I looked at the dependencies in Luabindd.dll.manifest and found that it depended on the debug runtime in Microsoft.VC80.DebugCRT, My program contains only the Microsoft.VC80.CRT release runtime, so I recompile a Lubind release library, modify the project Lib (dependent on Luabind release Lib), recompile, It works fine on a colleague's machine.