Installing MFC Dll
-
Hi, I have a program that uses MFC. I made an install project for my program and I installed it on another computer. When I tryed to run my program it said that it needed MFC70D.dll. After I copied this file in the program dir the error message said the program needed MSVCP70D.dll and after this it was MSVCR70.dll. I added this files to the instalation program. But now when I try to install on the other computer there is an warning in the installation process: "Module C:\...\MFC70D.DLL failed to register. HRESULT -2137024769. Contact your support personnel." (Exit instalation / Try again / Continue) If I hit Continue all works fine. Why is this? What is the proper way to also install this files needed by my program? Thanks ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.
-
Hi, I have a program that uses MFC. I made an install project for my program and I installed it on another computer. When I tryed to run my program it said that it needed MFC70D.dll. After I copied this file in the program dir the error message said the program needed MSVCP70D.dll and after this it was MSVCR70.dll. I added this files to the instalation program. But now when I try to install on the other computer there is an warning in the installation process: "Module C:\...\MFC70D.DLL failed to register. HRESULT -2137024769. Contact your support personnel." (Exit instalation / Try again / Continue) If I hit Continue all works fine. Why is this? What is the proper way to also install this files needed by my program? Thanks ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Your installer is set to self-register MFC70D.DLL. It doesn't need to be registered, because it contains no COM classes, and hence it doesn't export the
DllRegisterServer
entry point. You shouldn't be shipping a debug version of MFC with your software. Build a Release version of your software, then ship MFC70.DLL, MSVCP70.DLL and MSVCR70.DLL. If you're using a Windows Installer-derived installation product, use the merge modules supplied with Visual Studio .NET. You need VC_MFC.MSM (MFC70.DLL and MFC70U.DLL), VC_CRT.MSM (MSVCR70.DLL) and VC_STL.MSM (MSVCP70.DLL), which are installed to C:\Program Files\Common Files\Merge Modules. If the tool has an option to check MSMs for DLLs added to an installation, enable the option and point it to this directory.