Solved

Dissecting Com Dlls - getting the dependencies out

Posted on 2002-04-28
5
286 Views
Last Modified: 2010-04-04
This is not a delphi specific question, but i am a delphi programmer so, anyways..

I need to be able to ascertain the references/dependencies of any given dll, without the source code (easy), and without running it (relatively easy). It may have been created using either VB or Delphi, and will be an ActiveX dll.  The Oleviewer program that comes with Visual Studio does not publish a complete list of references contained, usually just one or two out of the 5-7 my objects usually have.

Even a third party tool that could achieve this would win these points.

Help!

paul
0
Comment
Question by:heapsteratwork
5 Comments
 
LVL 6

Accepted Solution

by:
DrDelphi earned 150 total points
ID: 6976957
Have you tried using Depend.exe from MicroSoft? It'll give you a list of ALL libraries needed to supoort a given DLL (or OCX,EXE, etc).

You can download it for free from :

http://search.microsoft.com/gomsuri.asp?n=2&c=rp_Results&siteid=us&target=http://www.microsoft.com/MSJ/code/depends.htm



Good luck!!
0
 
LVL 1

Author Comment

by:heapsteratwork
ID: 6997742
thanks for the link drdelphi. I havent had a chance to test it yet against one of my own dll's, to see if it brings up the non-static references.  Im currently having to parse the .vbp file to get the references (recently ive had to turn to vb for better com support and IDE integration, the for ... each command is very handy).  Ill get back to you next week with a final result. I wasnt sure whether it was possible to get the dynamically linked references out of the final dll.  Im still not sure either.
0
 
LVL 2

Expert Comment

by:mikepj
ID: 7003249
Depends won't see non-static imports.
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9004249
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from DrDelphi

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9017622
Thankyou for your response.

Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question