Here's how I declared my export function at the moment:
extern "C" __declspec(dllexport) Iexport_class* __stdcall GetExported_Class();
When VS2008 compiled the source for this, the created dll contains this in its export table:
_GetExported_Class@0
For compatibility with other compilers, I need this decoration to look like this:
GetExported_Class
Changing the calling convention to __cdecl will decorate it the way I want, but the convention will be wrong, so I cannot use it. I need it to be styled as __cdecl looks, but uses __stdcall instead.
Is there a way to do this without using a .def file? Is there a switch or parameter that I can pass to the link.exe linker that can make it decorate the export name the way I want?
thanks
source share