Article View: borland.public.cppbuilder.nativeapi
Article #12074Re: Underscore in Dll export function
From: Muzzy
Date: Thu, 25 Dec 2003 03:47
Date: Thu, 25 Dec 2003 03:47
42 lines
2427 bytes
2427 bytes
Muzzy wrote: > Hi, > > I just wonder if anybody has an answer: > > I create a DLL which exports one function: > > 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? > > Thank you, > Andrey > > PS. I use BCB 6.0 If i uncheck "Generate underscores" in "Project Options" -> "Advanced Compiler", i get multiple errors: [Linker Error] Unresolved external 'memcpy' referenced from D:\POLIGON\VPN DEV\VNC_WINSRC\WINVNC\MISSUBSCRIBE\MISDISKINFO.OBJ [Linker Error] Unresolved external '_lludiv' referenced from D:\POLIGON\VPN DEV\VNC_WINSRC\WINVNC\MISSUBSCRIBE\MISDISKINFO.OBJ [Linker Error] Unresolved external 'sprintf' referenced from D:\POLIGON\VPN DEV\VNC_WINSRC\WINVNC\MISSUBSCRIBE\MISDISKINFO.OBJ [Linker Error] Unresolved external 'strlen' referenced from D:\POLIGON\VPN DEV\VNC_WINSRC\WINVNC\MISSUBSCRIBE\MISDISKINFO.OBJ [Linker Error] Unresolved external 'memmove' referenced from D:\POLIGON\VPN DEV\VNC_WINSRC\WINVNC\MISSUBSCRIBE\MISDISKINFO.OBJ [Linker Error] Unresolved external 'printf' referenced from D:\POLIGON\VPN DEV\VNC_WINSRC\WINVNC\MISSUBSCRIBE\MISMACADDRESS.OBJ Then, if i heck it again, errors disappear... Weird, what the hell is happening??? Thank you, Andrey
Technical Details
Message-ID:
<3fea5dc5$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,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-24 20:09:07 PST Date: Wed, 24 Dec 2003 22:47:08 -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> In-Reply-To: <3fea5c17$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.91.233.60 Message-ID: <3fea5dc5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072324037 24.91.233.60 (24 Dec 2003 19:47:17 -0700) Lines: 43 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