VS2010 C + + written program in other people's machine can not run, the lack of mfc100.dll, Xxx100d.dll and other solutions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.