Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing DLL Problem

I have a C++ native application that was built under VS2005 (sp1),On machine A. (Debug Mode) Now,I need to run this application on a "clean" computer, Clean means it has no VS installed on. When i copy the runtime folder from machine A to the "clean" machine and try to activate the application it demands to reinstall the application. obviously missing DLLs are causing this problem cause on machine A the app works just fine, Is there any "clean" solution for this kind of problem besides gessing which DLLs are missing ? maybe a smart tool or installer that indicates which DLLs are missing at the runtime ?

Thanks, Liran

like image 493
Liran Avatar asked Dec 14 '25 10:12

Liran


2 Answers

To make this work I would download and install the Microsoft Visual C++ 2005 Redistributable package on the clean machine.

Then I would then create a release build of the application and copy that version to the clean machine.

like image 193
jussij Avatar answered Dec 17 '25 00:12

jussij


You can use Dependeny Walker http://www.dependencywalker.com/ for finding the standard DLLs that it references, but I'm not sure if there is an easy way of finding out what COM DLLs an application references.

Alternatively (I am not sure), you can run your application on machine A (on which it was created) and use process viewer from http://www.sysinternals.com. It tells you what DLLs a process has loaded.

like image 41
Vikram.exe Avatar answered Dec 17 '25 01:12

Vikram.exe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!