以下结果是由VS2010里面测试得出:
------------------------------------------------------------------
/* 函数名、类名、名称空间、@@、函数访问级别、调用约定、返回类型、参数类型、有无参数(@Z、XZ) 函数名: ?函数名 类名: @类名 名称空间:@名称空间名 函数访问级别: 純函数是Y,静态类方法public,protected,private依次是S,K,C 非静态类方法public,protected,private依次是QA,IA,AA 调用约定:__cdecl 是 A , __stdcall 是 G 对于返回类型与参数类型: void,char,signed char,unsigned char,short,unsigned short, int,unsigned int,long,unsigned long,float,double,long double, long long,unsigned long 依次对应:X, D, C, E, F, G, H, I, J, K, M, N, O, _J, _K 有无参数:有参数@Z、无参数XZ ------------------------------------------------------- int foo(void); [email protected]@YAHXZ short foo(void); [email protected]@YAFXZ short foo(int, int); [email protected]@[email protected] short __cdecl foo(int, int); [email protected]@[email protected] short __stdcall foo(int, int); [email protected]@[email protected] short __stdcall muyou::foo(int,int) [email protected]@@[email protected] public: static short __stdcall muyou::a::foo(int,int) [email protected]@[email protected]@[email protected] protected: static short __stdcall muyou::a::foo(int,int) [email protected]@[email protected]@[email protected] private: static short __stdcall muyou::a::foo(int,int) [email protected]@[email protected]@[email protected] private: short __stdcall muyou::a::foo(int,int) [email protected]@[email protected]@[email protected] protected: short __stdcall muyou::a::foo(int,int) [email protected]@[email protected]@[email protected] public: short __stdcall muyou::a::foo(int,int) [email protected]@[email protected]@[email protected] ------------------------------------------- void foo(); [email protected]@YAXXZ void foo(void); [email protected]@YAXXZ void foo(char); [email protected]@[email protected] void foo(signed char); [email protected]@[email protected] void foo(unsigned char); [email protected]@[email protected] void foo(short); [email protected]@[email protected] void foo(signed short); [email protected]@[email protected] void foo(unsigned short); [email protected]@[email protected] void foo(int); [email protected]@[email protected] void foo(signed int); [email protected]@[email protected] void foo(unsigned int); [email protected]@[email protected] void foo(long); [email protected]@[email protected] void foo(signed long); [email protected]@[email protected] void foo(unsigned long); [email protected]@[email protected] void foo(float); [email protected]@[email protected] void foo(double); [email protected]@[email protected] void foo(long double); [email protected]@[email protected] void foo(long long); [email protected]@[email protected] void foo(signed long long);[email protected]@[email protected] void foo(unsigned long long);[email protected]@[email protected] */ namespace muyou{ class a { public: short __stdcall foo(int, int); public: void vf(){foo(1, 1);} }; } using muyou::a; int main(void) { a oa; oa.vf(); return 0; }
时间: 2024-10-25 13:05:06