C::B doesn't recognized __stdcall convention? No?
If so, how do I use it?
For example, the following generates an error when building a DLL:
#define _DLL_CALL __stdcall(dllexport)
void _DLL_CALL get_url();
This is a Microsoft specific compiler extension. The problem is not with C::B. It may be a GCC (MinGW) problem.
http://www.google.com/search?hl=en&lr=&q=GCC+__stdcall&btnG=Search
>The problem is not with C::B. It may be a GCC (MinGW) problem.
Nah! It's a "ME" problem.
OK, I'm an idiot. I should have typed:
#define _DLL_CALL __stdcall __declspec(dllexport)
not
#define _DLL_CALL __stdcall(dllexport)
Thanks for replying! :)
Quote from: BigAngryDog on March 13, 2006, 03:54:26 AM
>The problem is not with C::B. It may be a GCC (MinGW) problem.
Nah! It's a "ME" problem.
OK, I'm an idiot. I should have typed:
#define _DLL_CALL __stdcall __declspec(dllexport)
not
#define _DLL_CALL __stdcall(dllexport)
Thanks for replying! :)
Sure. :D