K
kwijibo28
Hi all,
I was wondering if there is a standard definition for the calling
convention like __cdecl and __stdcall. I've search the c++ standard
document and there is no mention of __cdecl or __stdcall. I'm not very
surprise, for the committe, how to pass argument from a function to an
other, must be an implementation detail left to the compiler vendor.
But since in real life people write library which are build with a
compiler and use possibly by another compiler, compiler vendor must
agree on a common definition. I guess that definition should also
specify how to decorate function name according to a calling
convention.
I'm asking this question because recently I've build a dll with a MS
compiler and my client had a borland and we've found out that both
compiler don't agree on function decoration for __cdecl and __stdcall.
Thanks
Kwijibo28
I was wondering if there is a standard definition for the calling
convention like __cdecl and __stdcall. I've search the c++ standard
document and there is no mention of __cdecl or __stdcall. I'm not very
surprise, for the committe, how to pass argument from a function to an
other, must be an implementation detail left to the compiler vendor.
But since in real life people write library which are build with a
compiler and use possibly by another compiler, compiler vendor must
agree on a common definition. I guess that definition should also
specify how to decorate function name according to a calling
convention.
I'm asking this question because recently I've build a dll with a MS
compiler and my client had a borland and we've found out that both
compiler don't agree on function decoration for __cdecl and __stdcall.
Thanks
Kwijibo28