🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Underscore in Dll export function

#12080
From: Bob Gonder
Date: Thu, 25 Dec 2003 06:53
11 lines
1487 bytes
Muzzy wrote:

>extern "C" void __declspec(dllexport) GetValue(char* AValue);
>
>But when i do a dumpbin.exe /export MyDLL.DLL, i see that _GetValue is 
>exported, with underscore, and not GetValue
>
>Any ideas how to get rid of the underscore in the beginning?

I think you need a _stdcall (or WINAPI, same thing) in there...
extern "C" void __declspec(dllexport) _stdcall GetValue(char* AValue);
Technical Details
Message-ID: <r82luvgtq0rgn35tqlnjiqk6316dmpjs9o@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fea5c17$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,978c9ad7ff0cf7fb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-24 23:09:02 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Underscore in Dll export function
Date: Wed, 24 Dec 2003 22:53:49 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <r82luvgtq0rgn35tqlnjiqk6316dmpjs9o@4ax.com>
References: <3fea5c17$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.244.13.96
X-Trace: newsgroups.borland.com 1072335230 216.244.13.96 (24 Dec 2003 22:53:50 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail