Environment: VC6 SP3, NT4 SP5 or VC6 SP3, Windows98 SE
Have you ever experienced an error while loading a DLL when you start an application? Invalid DLL version? Entry point @XXXX not found?
If the answer is yes, then this application is for you!
On you LAN, there may be thousands of versions of a DLL! Which version are you using? Which DLL has effectively been loaded by your application? You must check the PATH, the current working directory of your process, etc...
This small application, called "DisplayLoadedModules", connects to a running process, gets the list of DLLs loaded by the process, and display the following information for every DLL:
The application can also save the output to a text file. If your application runs on a machine "A" and not on a machine "B", you can compare (using 'diff' or 'windiff') the output of the program on both machines. If you're experiencing a DLL version problem, you'll figure out very easily...
On Windows NT, the executable uses two additional DLLs/Lib: PSAPI.DLL and PDH.DLL For more on these APIs, please refer to MSDN Platform SDK:
On Windows 98, the executable uses the ToolHelp32 library. For more on this APIs, please refer to MSDN Platform SDK:
Note that you must select the proper WIN32 Configuration to build the executable:
The version info is fetched via the CFileVersion class by Manuel Laflamme (posted in www.codeguru.com).