This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Exporting __stdcall Procs without _ and @n
- To: gnu-win32 <gnu-win32 at cygnus dot com>
- Subject: Exporting __stdcall Procs without _ and @n
- From: Eric Britten <ebritten at ea dot oac dot uci dot edu>
- Date: Mon, 28 Apr 1997 12:41:18 -0700 (PDT)
- Reply-To: Eric Britten <ebritten at ea dot oac dot uci dot edu>
In order to build a control panel applet I need to export the function
CPlApplet from a dll. It is declared using the __stdcall convention.
However using gcc it is exported as CPlApplet@16, even if I use the -k
option for dlltool. If I use lcc, it is exported as _CPlApplet@16.
In order for windows 95 to be able to use the applet it must have an
export with the name CPlApplet with no name mangling at all.
I tried to use the following def file to change the way the export is
named.
EXPORTS
CPlApplet@16=CPlApplet
Dlltool returns an error about the = sign. Lcc ignores it.
Is there anyway to remove the _ and the @16 for the name of the exported
function so windows can find the function using GetProcAddress.
Thanks.
-----------------------------------------------
Eric Britten
ebritten@uci.edu
-----------------------------------------------
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".