__stdcall functions in relocatable DLLs
Mon Jan 12 04:59:00 GMT 1998
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 (email@example.com)
Crocodial Communications EntwicklungsGmbH
Ophagen 16a, D-20257 Hamburg, Germany
For help on using this list (especially unsubscribing), send a message to
"firstname.lastname@example.org" with one line of text: "help".
More information about the Cygwin