Link to home
Start Free TrialLog in
Avatar of gklux
gklux

asked on

Exploring functions inside a DLL

hi all,
I wouls like to use a DLL suplied with a program i bought (statistics calculations). How can i get the information about functions/procedures (name, parameters type and order...) declared and exported from this DLL ?

thanks for all ideas

Mike
Avatar of kretzschmar
kretzschmar
Flag of Germany image

name -> possible

parameters type and order -> not possible, you need a manual

Avatar of Epsylon
Epsylon

If the dll is a COM object then register it (if not already done) and import the type library into Delphi...
To explore anything a DLL (or EXE) offers get PeViewer from Petr Vones. Its on Borland Code Central.
Sorry, i tried to find the ID, but cannot reach Code Central.
ASKER CERTIFIED SOLUTION
Avatar of Cesario Lababidi
Cesario Lababidi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Using Win9x or NT you can just use QuickView(comes with windows) on the dll to view  the functions it exports( under export table)
The PeViewer on Code Central is free not shareware.
by the way called quikview.exe
you can download PeViewer
http://www.volweb.cz/pvones/delphi

or Code Central ID 15214
by the way, GExperts contains PeViewer too, together with many other helpful tools for Delphi
http://www.gexperts.org/
well i use Delphi 4 Standard, and i'm not sure if it has changed since, but in the bin folder of Delphi there is a program called tdump that lists the various exports of a dll. Just open your delphi\bin folder and run....

tdump -ee c:\..\dllname.dll and it will list the exports.

You might want to port the results to a file... so use the dos command...

tdump -ee c:\..\dllname.dll > c:\..\output.txt

There might be some windows programs out there that do the trick, but if you already have tdump, you might as well use it. It is easy enough.

Hope that helps.
Andrew
Avatar of gklux

ASKER

Thanks for intesresting in my question.
I download PEViewer but when i open the dll file i get this error message : "this is not a PE format".  Does somebody knows what it means ?

I tried so with tdump, but it looks like as if there were nothing to show. No error message...


Best regards

Mike
This sounds as if it is a 16-bit DLL.
Avatar of gklux

ASKER

Yep! It seems to be a 16 bits application. So I will search a latest version of the program.

Thanks

Mike
Avatar of gklux

ASKER

this tool may be usefull later.

regards

Mike