Article View: borland.public.cppbuilder.nativeapi
Article #12091Re: Underscore in Dll export function
From: Remy Lebeau (TeamB)
Date: Fri, 26 Dec 2003 03:05
Date: Fri, 26 Dec 2003 03:05
15 lines
1316 bytes
1316 bytes
"Muzzy" <leyandrew@yahoo.com> wrote in message
news:3fea5c17$1@newsgroups.borland.com...
> 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?
Use the __stdcall calling convention as well:
extern "C" __declspec(dllexport) void __stdcall GetValue(char* AValue);
Gambit
Technical Details
Message-ID:
<3feba450$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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-25 19:09:22 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fea5c17$1@newsgroups.borland.com> Subject: Re: Underscore in Dll export function Date: Thu, 25 Dec 2003 19:05:46 -0800 Lines: 17 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.1165 NNTP-Posting-Host: 67.22.139.199 Message-ID: <3feba450$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072407632 67.22.139.199 (25 Dec 2003 19:00:32 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail