🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11016

Re: DLL Howto...

#11016
From: Ed Mulroy [TeamB]
Date: Thu, 04 Mar 2004 11:50
31 lines
2119 bytes
Sorry but I have no general solution.  Other than using a dissassembler or
stepping through it in the debugger in CPU mode and looking at the assembly
language code there is no guaranteed way to know what an exported function's
parameters are or what the function does.  Get the documentation and header
file for the DLL from the person or company that created it.

.  Ed

> Babak wrote in message
> news:40470262@newsgroups.borland.com...
>
> Image that some make a DLL with Function below:
>
> extern "C" __declspec(dllexport)void SayHello(int n){
>    for(;n>0;n--)ShowMessage("Hi");
> }
>
> Now , image that we have no idea about function name ,
> acceptable parameter type , number of parameters and
> return value. OK?
> then what should I do?
> One of friends said about tdump -em -m dllname.dll
> but also I try tdump -ee -m dllname.dll that could tell me
> there is a _SayHello but still I'm wonder in Type , return
> value and the declaretion :-O :-\ :-?
>
> Any Idea?
>
> �P.S. I want to read dll the last way was so interesting and
> useful when I myself make the dll and I need to import *.lib
> file to use and link. but now , I've a dll from someone else.
Technical Details
Message-ID: <4047180b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40470262@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,95faf01013e76bb4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-04 04:09:54 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40470262@newsgroups.borland.com>
Subject: Re: DLL Howto...
Date: Thu, 4 Mar 2004 06:50:02 -0500
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <4047180b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1078401035 24.74.175.102 (4 Mar 2004 03:50:35 -0800)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail