Solved

Importing dll

Posted on 2002-03-09
4
250 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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