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. A required .dll was not found

A required .dll was not found

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++questionlearning
5 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.
  • M Offline
    M Offline
    Mike Winter
    wrote on last edited by
    #1

    Hi again When I copy my new application that I have been slaving over to my target PC, I come up with the above error when it is run. Of course, I can go through and copy all the required DLLs over manually as the application tells me they are missing, but there must be a better way! Is there a method of finding out what resourses have been used by an application? I am using VC++6.0, Windows XP (and 98 sometimes) Thanks for any help Mike

    C T B 3 Replies Last reply
    0
    • M Mike Winter

      Hi again When I copy my new application that I have been slaving over to my target PC, I come up with the above error when it is run. Of course, I can go through and copy all the required DLLs over manually as the application tells me they are missing, but there must be a better way! Is there a method of finding out what resourses have been used by an application? I am using VC++6.0, Windows XP (and 98 sometimes) Thanks for any help Mike

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

      You can use the depency walker tool that is provided with Visual Studio. It will show you all the dll that your application uses.

      M 1 Reply Last reply
      0
      • M Mike Winter

        Hi again When I copy my new application that I have been slaving over to my target PC, I come up with the above error when it is run. Of course, I can go through and copy all the required DLLs over manually as the application tells me they are missing, but there must be a better way! Is there a method of finding out what resourses have been used by an application? I am using VC++6.0, Windows XP (and 98 sometimes) Thanks for any help Mike

        T Offline
        T Offline
        The NULL Developer
        wrote on last edited by
        #3

        Mike Winter wrote: but there must be a better way Well Mike, firstly - if you are using MFC, then you will have to provide those dlls(mfc*.dll) whereever you ship your application. Secondly - there are better ways, but not THAT better as you are expecting. As of now, I only know two ways: 1. Make an installer, using Installshield or similar software, and include ur dlls with the installer.This is better option as once these dlls are installed, there is no need ship those dlls again on that machine. 2. Statically link the MFC dlls in your application. This will make ur application very heavy. I guess size increase is about 2 Mb and thats the reason enough why this is a bad idea. so choose ur way... "Do first things first, and second things not at all." — Peter Drucker.

        1 Reply Last reply
        0
        • C Cedric Moonen

          You can use the depency walker tool that is provided with Visual Studio. It will show you all the dll that your application uses.

          M Offline
          M Offline
          Mike Winter
          wrote on last edited by
          #4

          Thanks for this. I have just fired up dependency walker and it looks like it does exactly what I want! Thanks again Mike

          1 Reply Last reply
          0
          • M Mike Winter

            Hi again When I copy my new application that I have been slaving over to my target PC, I come up with the above error when it is run. Of course, I can go through and copy all the required DLLs over manually as the application tells me they are missing, but there must be a better way! Is there a method of finding out what resourses have been used by an application? I am using VC++6.0, Windows XP (and 98 sometimes) Thanks for any help Mike

            B Offline
            B Offline
            bugDanny
            wrote on last edited by
            #5

            You don't happen to be trying to run the debug version, are you? I had that problem too, saying such and such dll was not found, when I realized I was compiling in debug. If you compile in release (if this is your problem) that problem should go away. Hope this helps! Danny The stupidity of others amazes me!

            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