Cross Platform DLL with __stdcall giving problems
-
Hi there,
I am creating a DLL on windows using QT and mingw and I ran into problems when using __stdcall in the definition of the exported function:
eg.:extern "C" __declspec(dllexport) int __stdcall avg(int a, int b) { return (a + b) / 2; }
This results in the function in the DLL being decorated with an @ and the number of bytes in the arguments which complicates the resolve of the function in the DLL.
I read in one place
-
Maybe "this thread":http://qt-project.org/forums/viewthread/21295/ will help you.