News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Does not recognize __stdcall?????

Started by BigAngryDog, March 13, 2006, 03:07:47 AM

Previous topic - Next topic

BigAngryDog

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();
[url="//bigangrydog.com"]BigAngryDog.com[/url]

sethjackson

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

BigAngryDog

>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! :)
[url="//bigangrydog.com"]BigAngryDog.com[/url]

sethjackson

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