Solved

Dissecting Com Dlls - getting the dependencies out

Posted on 2002-04-28
5
285 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 72
Convert GUI app into console app for Win32 Env 5 78
Create a path if not exists 7 69
control image tags in a string ? 12 110
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now