Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MFC42D 1

Status
Not open for further replies.

tzzdvd

Programmer
Aug 17, 2001
52
IT
Hello to all are reading.
I done a program for my graduating thesis on a computer on which is installed Microsoft Visual Studio. Then I made the .exe file and brought it to my professor to show him but, as I run the program , the computer (on which there isn't Visual Studio) said that it is linked to mfc42d.dll:5076 that is not available.
What do I do?
How can I make a setup file to install my program with all .dll it needs?
Thank's for all.
Davide
 
use MFC as a statically linked library. See Project->Settingc->C++ Ion Filipski
1c.bmp


filipski@excite.com
 
Ion's comment should work, but isn't necessarily the best solution. MFC42D.DLL is a debug library containing MFC code. By using MFC as a statically linked library you remove the dependence upon that library. However, you'll still have a debug build - which is larger and slower than the alternative.

Instead, you might want to change the active configuration. Under the build menu select "Set active configuration..." and switch to "Win32 Release". Then you should rebuild the program. The newer version will be smaller and should work anywhere...

Since MFC42D.dll is a debug library it usually only exists on machines with Visual Studio. By switching to release mode you'll be using MFC42.DLL - a standard library on most windows machines.

GEAK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top