Problem: VS2010 C + + written program in other people's machine can not run, the lack of mfc100u.dll xxx100d.dll and other solutions
Workaround:
1. Package these DLLs and publish them together with the application;
2. Using MFC static compilation;
Method of setting up static compilation in attached 1:vs2010
Programs compiled using VS2010 often appear to be unable to find related DLL files when running in Windows XP, and we can use the static compilation method to
Row-dependent files are packaged into *.exe to reduce dependency on the environment.
You can generally configure two items:
1. Project-> Configuration Properties-> The use of General->mfc: MFC is used in static libraries.
2. Project-> Configuration Properties->c/c++-> code generation-> Runtime: Select/MT.
Appendix 2: What is static compilation
Static compilation, which is when the compiler compiles an executable file, extracts the part of the corresponding dynamic-link library (. So) that the executable needs to invoke.
Link to an executable file so that the executable file does not depend on the dynamic link library when it is running.
http://blog.csdn.net/minothing/article/details/6292458