运行程序的时候出错MFC42D.dll找不到。

这是由于编译的程序是在debug模式下编译的。

按照release模式编译就不会编译进MFC42D.dll等文件。

The 'D' in MFC42D stands for debug
version. It doesn't make sense to distribute it, and it is not licensed
for redistribution.

There is a menu command to change the build configuration to release
build. In VC6 it is on the Build menu, 'Set Active Configuration.' If
you are using VC.net look around the menus a bit for something similar,
or look up configuration in the help

原文地址:https://www.cnblogs.com/jjkv3/p/1351711.html