Differences between using MFC in a shared DLL and using MFC in a static library

Source: Internet
Author: User

When vs2008 is used, there is one of the following MFC settings in the project properties: 1. use the standard Windows library 2. use MFC in shared DLL 3. use the first type of MFC in a static library as the name suggests. The second type means that the content of some mfc dll files is not included in the EXE files during packaging, so the EXE files are small, but related DLL files are required in the system during running. The third isCodeIn the EXE file, the file is large, but can be run on a machine without the relevant DLL. At the same time, ifProgramThis is the second method. If you send it to a colleague and run it on the machine of the colleague, the following error may occur: "The program cannot be started ......, Failed to start the application because the application configuration is incorrect ."
I think it is better to select 3rd types of programs in the development stage. You don't need to worry about the size and efficiency. You can use other tools such as spy in later packaging, to detect the DLL.

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.