Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a MFC vc++ project and I have exe file for this project using Visual Studio 2013. When i open the project exe it is working fine on my development machine. But when i open this exe in my customer machine im getting error "The program can't start because mfc120.dll is missing from your computer. Try reinstalling the program to fix this problem

What I have tried:

I noticed that my project exe file is working if the system has Visual Studio installed. I also installed "Visual C++ Redistributable Packages for Visual Studio 2013" but even after installing im getting same error. Please suggest a solution
Posted
Updated 19-Feb-19 23:37pm

MFC applications need a bunch of DLL files in order to run, they don't "stand alone" - in the same way that a wiki article doesn't "stand alone" but links to a bunch of reference pages elsewhere on the web.

You don't just "send your exe" to a customer, you send them an installation program which will install all the required DLLs and their dependencies, align with your app and its data as necessary.

If you google your Visual Studio version, "MFC", and "Installer" you should find instructions.
 
Share this answer
 
According to Download Visual C++ Redistributable Packages for Visual Studio 2013 from Official Microsoft Download Center[^] the redist package contains the MFC libraries. Check you installation again.
 
Share this answer
 
Comments
Member 12773184 21-Feb-19 1:26am    
Thank for your suggestions. I installed 32bit version of Visual C++ Redistribute and i removed unwanted third-party debug dlls in my project. now it is working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900