A required .dll was not found
-
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
-
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
You can use the depency walker tool that is provided with Visual Studio. It will show you all the dll that your application uses.
-
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
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.
-
You can use the depency walker tool that is provided with Visual Studio. It will show you all the dll that your application uses.
Thanks for this. I have just fired up dependency walker and it looks like it does exactly what I want! Thanks again Mike
-
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
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!