Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a legacy VB6 application that has not yet been ported, we need to be able to check the file version of the DLL containing and implementing a certain business related COM object.

I don't really want to crawl through the registry to find it and since the COM object can be instantiated, I had hoped there would be a few API's that could at least give me the full path name to the DLL.

I had thought this would be simple enough but it is turning out to be much harder then anticipated.

Has anyone done this kind of thing before?
Posted

1 solution

You can use the VC++ debugger: just run an application that use the COM object through the debugger, when the COM object is instantiated look at the debugger output window and on it search for the loaded modules. Each loaded module is a dll that your executable is using and one of them is the one that implements the COM object.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900