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
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
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.
Sorry, i tried to find the ID, but cannot reach Code Central.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
by the way, GExperts contains PeViewer too, together with many other helpful tools for Delphi
http://www.gexperts.org/
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
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
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
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.
ASKER
Yep! It seems to be a 16 bits application. So I will search a latest version of the program.
Thanks
Mike
Thanks
Mike
ASKER
this tool may be usefull later.
regards
Mike
regards
Mike
parameters type and order -> not possible, you need a manual