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. How to run MFC application

How to run MFC application

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++helptutorial
4 Posts 4 Posters 0 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.
  • D Offline
    D Offline
    dudic
    wrote on last edited by
    #1

    I have a little problem with distributing a program. As on other computers, which don't have installed VC6, don't exist some *.dll's, my application don't work. so, how do I have to register them during first install on computer?

    T D J 3 Replies Last reply
    0
    • D dudic

      I have a little problem with distributing a program. As on other computers, which don't have installed VC6, don't exist some *.dll's, my application don't work. so, how do I have to register them during first install on computer?

      T Offline
      T Offline
      Toni78
      wrote on last edited by
      #2

      Use depends.exe to see what dlls are needed by your application, and then you can copy them to the other computer. // Afterall I realized that even my comment lines have bugs

      1 Reply Last reply
      0
      • D dudic

        I have a little problem with distributing a program. As on other computers, which don't have installed VC6, don't exist some *.dll's, my application don't work. so, how do I have to register them during first install on computer?

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        You need to ensure that all DLLS that your program explicitly and implicitly links to are available on the target machine. This includes, but is not limited to, MFC42.DLL and MFC42U.DLL. The DEPENDS.EXE utility can help you out with some of this. If you do need to install files along with your program, make sure it is legal to do so. Blindly copying files does have repercussions.

        1 Reply Last reply
        0
        • D dudic

          I have a little problem with distributing a program. As on other computers, which don't have installed VC6, don't exist some *.dll's, my application don't work. so, how do I have to register them during first install on computer?

          J Offline
          J Offline
          Joan M
          wrote on last edited by
          #4

          Also read the documentation regarding to redistributable files, is in a file redist.txt (I think) that will make clear if it is legal to redistribute or not... i.e. you cannot redistribute a debug linked exe. Hope this helps. PS: use dependency walker (depends.exe) and you'll see which files are you missing.

          https://www.robotecnik.com freelance robots, PLC and CNC programmer.

          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