dependencies of exe or dll
dependencies of exe or dll
if you have Visual Studio installed there's a nifty utility called dumpbin.exe, note that there are several versions, for x86, x64 and arm, choose the appropriate one.
example usage
dumpbin.exe /imports somedll.dll or exe
dumpbin.exe /exports somedll.dll or exe
dumpbin.exe /dependents somedll.dll or exe
you can get VS community edition for free.
example usage
dumpbin.exe /imports somedll.dll or exe
dumpbin.exe /exports somedll.dll or exe
dumpbin.exe /dependents somedll.dll or exe
you can get VS community edition for free.
Re: dependencies of exe or dll
Well, yes and no.srvaldez wrote:you can get VS community edition for free.
Yes = it's free (costs: a download of some > 1 GB data)
No = uses plenty HDD/SSD resources
All for a little utility?!? (you must be joking!)
Re: dependencies of exe or dll
I downloaded the file dumpbin.exe.
It needed link.exe, which i got.
then it needed (something).dll forget which.
then it needed (something else).dll forget which.
At that point they all got a free passage into the recycle.
So that was just another failure of many.
It needed link.exe, which i got.
then it needed (something).dll forget which.
then it needed (something else).dll forget which.
At that point they all got a free passage into the recycle.
So that was just another failure of many.
Re: dependencies of exe or dll
I always thought the go to utility was dependency Walker, found at http://www.dependencywalker.com/
Re: dependencies of exe or dll
this tip was primarily meant for someone already having VS installed, it's your choice, take it or leave it.
@caseih
dependency walker shows information in an overwhelming fashion, you can't see the forest through the trees.
dumpbin -dependents shows all the info in an easy to read format.
@dodicat
dumpbin is part of VS and is not meant as a stand-alone utility apart from VS.
here are the dependencies of dumpbin from VS-2017
@caseih
dependency walker shows information in an overwhelming fashion, you can't see the forest through the trees.
dumpbin -dependents shows all the info in an easy to read format.
@dodicat
dumpbin is part of VS and is not meant as a stand-alone utility apart from VS.
here are the dependencies of dumpbin from VS-2017
if you want more info then ask for imports.File Type: EXECUTABLE IMAGE
Image has the following dependencies:
KERNEL32.dll
VCRUNTIME140.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-process-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
Re: dependencies of exe or dll
dodicat, since I consider you my friend try dumpbin, let me know if it works.
Last edited by srvaldez on Sep 01, 2017 8:48, edited 4 times in total.
Re: dependencies of exe or dll
Okay so the only dependency that dumpbin has is the MS Universal C runtime, then, which should be on any updated system, though it's also installable separately from MS. This is standard operating procedure on Windows for decades (the MS VC runtime).srvaldez wrote:dumpbin is part of VS and is not meant as a stand-alone utility apart from VS.
here are the dependencies of dumpbin from VS-2017File Type: EXECUTABLE IMAGE
Image has the following dependencies:
KERNEL32.dll
VCRUNTIME140.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-process-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
Re: dependencies of exe or dll
there were about three more dependencies, link.exe, mspdb140.dll and msvcdis140.dll
Re: dependencies of exe or dll
another dependency, it should be complete now.
Re: dependencies of exe or dll
It's a useful tool. I've mentioned used it just recently: https://freebasic.net/forum/viewtopic.p ... 55#p234855
And yes, for analyzing the dependencies of EXEs or DLLs I'd first use dependency walker ("depends.exe"). Dumpbin is useful for libraries or when more low-level information is needed.
Personally I've installed the complete Visual Studio in several versions but I can understand that this is too much for only this tool. btw the latest version (VS 2017) allows to selectively install components so that you can define the storage use. Things like the Windows SDK (which can be also installed via the VS installer) can never hurt (if you've enough disk space).
And yes, for analyzing the dependencies of EXEs or DLLs I'd first use dependency walker ("depends.exe"). Dumpbin is useful for libraries or when more low-level information is needed.
Personally I've installed the complete Visual Studio in several versions but I can understand that this is too much for only this tool. btw the latest version (VS 2017) allows to selectively install components so that you can define the storage use. Things like the Windows SDK (which can be also installed via the VS installer) can never hurt (if you've enough disk space).
Re: dependencies of exe or dll
(If FB delivers objdump, afaik objdump -p also can show quite a lot. Not as overviewable though, but if it comes with FB it might be a candidate for IDE integration.
The best IMHO is the heavenware (or something) PE Explorer, which is payware with free trial. In cases of conflict or uncertainly, I download that trial )
The best IMHO is the heavenware (or something) PE Explorer, which is payware with free trial. In cases of conflict or uncertainly, I download that trial )
Re: dependencies of exe or dll
thank you marcov for the tip on heaventools PE Explorer http://www.heaventools.com/download-pe-explorer.htm, looks like a very useful tool though just a bit hard on the wallet but probably worth it.
regarding objdump, it's included in msys2 and to my surprise it depends only on Windows dll's, so I see no reason why it couldn't be included with FB
regarding objdump, it's included in msys2 and to my surprise it depends only on Windows dll's, so I see no reason why it couldn't be included with FB
Re: dependencies of exe or dll
objdump is also nice, but it doesn't support other compilers than the GNU compilers very well. If you e.g. want to analyze binaries built with MSVC better use dumpbin.
Instead of PE Explorer I'm using CFF Explorer Suite. It's free and you can download it here: http://www.ntcore.com/exsuite.php
Instead of PE Explorer I'm using CFF Explorer Suite. It's free and you can download it here: http://www.ntcore.com/exsuite.php
Re: dependencies of exe or dll
thank you St_W for the tip.
[edit] CFF explorer is nice, it's similar to the discontinued eXeScope but with more features and it's 64-bit.
[edit] CFF explorer is nice, it's similar to the discontinued eXeScope but with more features and it's 64-bit.