🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DLL GetProcAddress problem

#16284
From: Russell Hind
Date: Tue, 20 May 2003 15:20
24 lines
1590 bytes
Have you tried tdump on the DLL?

tdump txdevice.dll

from the command prompt will list all the symbols the dll exports.  You 
can check the name with that.

HTH Russell

Enrico B. wrote:
> 
> I am pretty sure the "Txdevice.dll" does contain the routine
> "Txdevice_init"; in spite of that the instruction:
> 
> Txdevice_init = (int (*)(void))GetProcAddress(hndr, "Txdevice_init");
> 
> always returns zero.
> Is there something wrong in my code?
> Thanks in advance.
> 
> Henry
> 
> 
> 
Technical Details
Message-ID: <3eca47f7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ec9e11d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,103aeaad97b09526
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-20 08:29:23 PST
Date: Tue, 20 May 2003 16:20:33 +0100
From: Russell Hind <rhind@mac.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: DLL GetProcAddress problem
References: <3ec9e11d@newsgroups.borland.com>
In-Reply-To: <3ec9e11d@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.240.15.125
Message-ID: <3eca47f7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1053444087 212.240.15.125 (20 May 2003 08:21:27 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail