Re: What is better, cdecl or stdcall?
- Posted by mattlewis (admin) Jun 28, 2013
- 1068 views
TheresNoTime said...
I need to write a DLL in C++. It will be linked to Euphoria project. What better use for exporting functions from C++ DLL to Euphoria script?
The most important thing is to export a C API for euphoria to use. Using a C++ DLL from anything but C++ (and the same compiler!) is a nightmare. Basically, this means writing your functions inside of an extern "C" block:
extern "C"{ /* functions here */ }
Matt