Building question
-
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?
-
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?
Use DependcyWalker. This tool is included with Visual Studio. It will show you all the dll's required by your application to run.
-
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?
-
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!)
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?..
-
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?..
-
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
That helped, thanks! I found it. Now what remains is to send the prorgam to someone ans see if it works :)