Article View: borland.public.cppbuilder.nativeapi
Article #12086Re: Underscore in Dll export function
From: Muzzy
Date: Thu, 25 Dec 2003 15:06
Date: Thu, 25 Dec 2003 15:06
22 lines
1691 bytes
1691 bytes
Bob Gonder wrote: > 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); > !!!!!!!!!!!!!! You've got it, man! Yeap, i've just tried to add _stdcall and it works! Thanks a lot! Andrey
Technical Details
Message-ID:
<3feafcf5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fea5c17$1@newsgroups.borland.com> <r82luvgtq0rgn35tqlnjiqk6316dmpjs9o@4ax.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 07:09:08 PST Date: Thu, 25 Dec 2003 10:06:17 -0500 From: Muzzy <leyandrew@yahoo.com> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Underscore in Dll export function References: <3fea5c17$1@newsgroups.borland.com> <r82luvgtq0rgn35tqlnjiqk6316dmpjs9o@4ax.com> In-Reply-To: <r82luvgtq0rgn35tqlnjiqk6316dmpjs9o@4ax.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.91.233.60 Message-ID: <3feafcf5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072364789 24.91.233.60 (25 Dec 2003 07:06:29 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail