__stdcall functions in relocatable DLLs

Benjamin Riefenstahl benny@crocodial.de
Mon Jan 12 04:59:00 GMT 1998


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".



More information about the Cygwin mailing list