DUMPBIN Reprise

Dear Dr. GUI:

Try as I might, I cannot get DUMPBIN.EXE to list the DLLs needed by a 32-bit Windows program, as you state it should in the September/October 1996 Developer Network News.

If you have more info on this, or another utility to accomplish this task, please let me know.

Thanks,

Galen Sinkey

Dr. GUI replies:

Sometimes it's hard to read the good doctor's handwriting. And sometimes he leaves some things out.

To check the list of DLLs implicitly linked to an .EXE, .DLL, or .OCX file, use:

DUMPBIN /IMPORTS <modulename>

where "modulename" is the name of the .EXE or .DLL.

If you want the entire list of dependencies, you will have to run DUMPBIN on each of the DLLs your program loads as well.

Keep in mind, however, that this works only for implicitly linked DLLs. If the app loads any DLLs with the LoadLibrary API, this method is not going to detect it—nor is there an easy method to detect DLLs that are loaded in that way. And the same can be said of the DLLs that an app loads.