This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __stdcall functions in relocatable DLLs


Hi Joao,

Joao Pedro Sousa wrote:
> By the way, anyone knows if exported functions on a DLL MUST be __stdcall?
> Can they be C calling convention?

They can be anything you want. The OS API uses the __stdcall convention,
so any language that supports import of DLL functions must support it.
For some languages, especially embedded languages like VBA, it's the
only supported calling convention so if you care about mixed language
programming, you should prefer using __stdcall for exported functions.

so long, benny
======================================
Benjamin Riefenstahl (benny@crocodial.de)
Crocodial Communications EntwicklungsGmbH
Ophagen 16a, D-20257 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]