The mfc42d. dll is not found, so this application cannot be started.

Source: Internet
Author: User

We recommend that you download an mfc42d. dll file and copy it to the c: \ windows \ system32 directory. OK

Problem: VC ++ 6.0 error: mfc42d. dll not found, so this applicationProgramFailed to start. Re-installing the application may fix this problem.

Solution:

Generally, debugging programs are generated during programming, that is, executable files under the DEBUG directory. Run the debug version of the EXE file

, Will dynamically connect the mfc42d. dll and msvcrtd. DLL files, so if you run this file on another machine and this machine

If either of the two files is missing, the system will prompt "cannot find the required. dll file-xx. dll. Generally

Without these two files, unless VC is installed and so on-the fact is, I installed VC ++ 6.0 and this error occurs, I do not know if it is pirated software

Problem...
The solution is simple:

1. Select the menu build-> set Active configuration, and then select release, that is, my ++ 6.0 build-configuration-select

Release
2. Select project-> Settings. On the General tab, select use MFC in a static library as the first option.

That is, my + 6.0 Project -- settings, select release on the left, and use MFC as the static link library on the right.

The above two steps cannot be reversed... I started to reverse it, so nothing can happen...
This generates the release program. In the release directory, the executable files do not use the two annoying DLL files, generally on other machines.

Usable.

OK. I did it, wrote another program, and then did the experiment. The result is correct.

To create a general program, you must use the release version.

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.