读书人

请教_cdecl和_stdall在调用上有什么区

发布时间: 2012-02-28 13:06:36 作者: rapoo

请问_cdecl和_stdall在调用上有什么区别?
万分感谢

[解决办法]
__cdecl
Right to left.
Caller removes arguments from the stack. This calling convention is the only one that allows variable argument lists.
Underscore prefixed to function names, as in _Foo.

__stdcall
Right to left.
Callee removes its own arguments from the stack.
Underscore prefixed to function name, and @ appended followed by the number of decimal bytes in the argument list, as in _Foo@12.

读书人网 >C语言

热点推荐