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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Programs On Other Computers...

Status
Not open for further replies.

DrkPaladin

Programmer
May 18, 2002
33
CA
When I try to run a MFC Application program that I made with Visual C++ on a computer that does not have C++ installed on it, I get an error that says:
"A required .DLL file, MFC42D.DLL, was not found"...
How would I fix this error so I may be able to run my programs on other computers???
Thanks.
 
It could be because you have created (build) a debug version of your application (The 'D' normally means that the DLL is a Debug verion, but I am not sure on this case).
If so, try to build a release version - and run it on another computer.

If it doesn't help, try to copy mfc42d.dll to that other computer.

/JOlesen
 
Oh, sorry :

From the menu in the IDE choose
Build -> Set Active Configuration .... and choose the Release version of your project.

Now build the project again, and you will have an .exe-file (probably located in a folder named 'Release') that will probably not need mfc42d.dll but mfc42m.dll (which I would expect to be installed on that other computer).

/Jolesen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top