Solved

Importing dll

Posted on 2002-03-09
4
249 Views
Last Modified: 2010-04-05
Can I Import a dll into delphi
to see what function are in it?
is there any way to see what is the interface in a com dll?
0
Comment
Question by:Netsal7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 6852567
listening
0
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 20 total points
ID: 6855619
If the dll contains a type library you can view the type library. But then the dll contains a COM object.
If there is a type library in it, you can use the Windows API to retrieve the function names of the exported functions but not the parameters nor the calling methods of these functions. You can use tdump.exe to view these functions and I wish I could remember what the Windows API method of retrieving these names were but I can't. However, there is no way to see the exact definitions of these functions.

But back to the type library story. Go to Project/Import type library. Click on 'Add' and select the DLL you want to view. If it has no type library you will get an error, otherwise you will get the components and a complete unit with the definitions of the DLL. Then click on 'Create unit' to just create the unit or on 'Install' to create the unit and install it.
0
 

Expert Comment

by:CleanupPing
ID: 9343287
Netsal7:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 7

Expert Comment

by:knightmad
ID: 9470523
Wow, Its been a long time since this comment have been visited!

Netsal7,
No comment has been added lately (19 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to Workshop_Alex http:#6855619

-- Please DO NOT accept this comment as an answer ! --

Thanks,

knightmad
EE Cleanup Volunteer

Remember you (all) can object this recommendation if you disagree, just leave a post here explaining why are you objecting and what should be done instead.
Within 7 days probably this thread will be closed, so, hurry up! : )
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 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