从 msdn里查 va_list va_arg 等
解决方案 »
- mfc对话框关闭时 回传参数
- 请问如何将字段类型为float的查询的SUM值直接放到CEdit中去?谢谢
- 请问 int add(int x, int *&y); 和 int add(int x, int & *y); 这两个函数第二个参数的区别?谢谢!
- 如何获得用户在CRichEditView视图中输入的字符串的内容
- 几个基本问题!
- 请问:如何在程序启动时,使cformview最大化(和主窗口一样大)?
- 如何在主进程中创建子进程?
- 在线急等:如何修改指定表的指定行指定列的值用什么函数?
- ALT+P,怎么让焦点变到列表控件上,或按钮上?100分
- ATL/COM被一个问题搞得头发晕眼发花元气大伤,特请高人加持
- 怎样去掉子窗口(childframe)的凸起的边框?
- 如何实现对数据的压缩?
__stdcall由被调用者清栈.WINDOWS API函数使用这种方式.
__cdecl由调用者清栈.C/C++使用这种方式__stdcall:
Argument-passing, order Right to left.
Argument-passing convention, By value, unless a pointer or reference type is passed.
Stack-maintenance responsibility, Called function pops its own arguments from the stack.
Name-decoration convention, An underscore (_) is prefixed to the name. The name is followed by the at sign (@) followed by the number of bytes (in decimal) in the argument list. Therefore, the function declared as int func( int a, double b ) is decorated as follows: _func@12
Case-translation convention, None
__cdecl:
Argument-passing, order Right to left
Stack-maintenance, responsibility Calling function pops the arguments from the stack
Name-decoration convention, Underscore character (_) is prefixed to names
Case-translation, convention No case translation performed
Argument-passing, order Right to left.
应该是
Argument-passing order, Right to left. 就是说参数进栈顺序是由右而左喽.
这两种方式的进栈顺序是一样的.