C language > Beginner questions

Winamp Plugin - Access Violation (plugin dll created with Pelles C)

<< < (2/2)

viulian:
Well, yup - it works for me too with __cdecl - even I don't think this is a beginner question  ;) ..

I mean, we're on Windows, how come the M$ default (which is __cdecl per this article: http://support.microsoft.com/kb/100832 ) isn't the default  :-\ ?

severach:
An even better question. Why doesn't the SDK writer put __cdecl before each function that is required to be that way to ensure that no matter what the defaults are the code works correctly?

frankie:
Unfortunately most of free code and libraries generally come with M$VC project, and since M$VC doesn't default to __stdcall when compiling something different from a console app they doesn't feel obliged to add the call convention specifier (the same problem is present for SQLITE, SDL, etc, etc.)
Maybe it would be better if the next release of the compiler doesn't force __stdcall convention and  :'( follows more strictly M$VC behaviour.

Navigation

[0] Message Index

[*] Previous page

Go to full version