🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DLL GetProcAddress problem

#16286
From: Bob Gonder
Date: Tue, 20 May 2003 14:43
14 lines
1541 bytes
"Enrico B." <eangelo@libero.it> wrote:

>#define TXDEVICE_API extern "C" __declspec(dllexport)
>
>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?

Could be, with the API being extern "C", that the actual name is
"_Txdevice_init"
Technical Details
Message-ID: <ukfkcv4eg402qa4b0l27439v72bfch9k3k@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.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
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: DLL GetProcAddress problem
Date: Tue, 20 May 2003 07:43:28 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <ukfkcv4eg402qa4b0l27439v72bfch9k3k@4ax.com>
References: <3ec9e11d@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.81
X-Trace: newsgroups.borland.com 1053441795 67.31.165.81 (20 May 2003 07:43:15 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.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