Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Installing MFC Dll

Installing MFC Dll

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Florin Ochiana
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • F Florin Ochiana

      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.

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups