From: benny AT crocodial DOT de (Benjamin Riefenstahl) Subject: Re: __stdcall functions in relocatable DLLs 12 Jan 1998 10:34:26 -0800 Message-ID: <34BA0571.4B5C9272.cygnus.gnu-win32@crocodial.de> References: <3 DOT 0 DOT 5 DOT 32 DOT 19980111005557 DOT 007a7580 AT mail DOT servisoft DOT pt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com 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 AT crocodial DOT 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 AT cygnus DOT com" with one line of text: "help".