Subject: Re: __stdcall functions in relocatable DLLs
From: [email-masked] (Benjamin Riefenstahl)

12 Jan 1998 10:34:26 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked]

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 ([email-masked])
Crocodial Communications EntwicklungsGmbH
Ophagen 16a, D-20257 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".