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. Building question

Building question

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpvisual-studio
6 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.
  • L Offline
    L Offline
    Lampros Giampouras
    wrote on last edited by
    #1

    I made a program and produced the exe file with visual studio 6. But when I sent the exe to another computer it couldn't work because dlls were missing. How can I know what dlls to have with the exe files in order to work and how will I find them? Isn't there an automated way to do this?

    C N 2 Replies Last reply
    0
    • L Lampros Giampouras

      I made a program and produced the exe file with visual studio 6. But when I sent the exe to another computer it couldn't work because dlls were missing. How can I know what dlls to have with the exe files in order to work and how will I find them? Isn't there an automated way to do this?

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Use DependcyWalker. This tool is included with Visual Studio. It will show you all the dll's required by your application to run.

      1 Reply Last reply
      0
      • L Lampros Giampouras

        I made a program and produced the exe file with visual studio 6. But when I sent the exe to another computer it couldn't work because dlls were missing. How can I know what dlls to have with the exe files in order to work and how will I find them? Isn't there an automated way to do this?

        N Offline
        N Offline
        normanS
        wrote on last edited by
        #3

        Have a look at "static linking" in Visual Studio. If you static link then the necessary functions are included in your EXE (This also makes the EXE much bigger, but EXE size is good to impress unknowledgeable customers!)

        L 1 Reply Last reply
        0
        • N normanS

          Have a look at "static linking" in Visual Studio. If you static link then the necessary functions are included in your EXE (This also makes the EXE much bigger, but EXE size is good to impress unknowledgeable customers!)

          L Offline
          L Offline
          Lampros Giampouras
          wrote on last edited by
          #4

          No luck. I put it in: use mfc as a static library, and errors were created.. I can't seem to find a way to see what dlls are called.. I must be doing something wrong and I don't have DependcyWalker. How do they do it?..

          S 1 Reply Last reply
          0
          • L Lampros Giampouras

            No luck. I put it in: use mfc as a static library, and errors were created.. I can't seem to find a way to see what dlls are called.. I must be doing something wrong and I don't have DependcyWalker. How do they do it?..

            S Offline
            S Offline
            squidev
            wrote on last edited by
            #5

            Are you sure you don't have DependencyWalker ? Look for a file called depends.exe, under [Path to Visual Studio]\Common\Tools Hope this helps

            L 1 Reply Last reply
            0
            • S squidev

              Are you sure you don't have DependencyWalker ? Look for a file called depends.exe, under [Path to Visual Studio]\Common\Tools Hope this helps

              L Offline
              L Offline
              Lampros Giampouras
              wrote on last edited by
              #6

              That helped, thanks! I found it. Now what remains is to send the prorgam to someone ans see if it works :)

              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