[Dev-C++] Compiling dll for several languages
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Philip B. <phi...@pb...> - 2007-06-28 13:40:45
|
Hi everyone, I'm having some issues while trying to compile a dll in Dev-C++ with the = stdcall calling convention. I want all my functions to export only as = stdcall, without the @4, @8 and what not after them. What do I set on = the command line, and do I need a def file at all? I declare my = functions like: extern "C" __declspec( dllexport ) int __stdcall myFunction(void); And then in the .def file taht I have right now I do: EXPORTS myFunction@0 Because as far as I understood it you add 4 for each parameter that the = function has because that's the size in bytes of a Win32 pointer. But i'm having some issues getting it to work in other languages, = especially when returning HANDLE which is of course void*. Can anyone = help? I want it to be compatible with as many languages as possible. Regards Philip Bennefall |