b****g 发帖数: 625 | 1 What is this doing?
typedef int (__stdcall *MyFun)(int a, void *b); |
h**k 发帖数: 3368 | 2 定义一个函数指针 MyFun
【在 b****g 的大作中提到】 : What is this doing? : typedef int (__stdcall *MyFun)(int a, void *b);
|
b****g 发帖数: 625 | 3 not exactly
I remember that _stdcall is a Win32 calling conventions which has some
features, but I don't remember what are the features
【在 h**k 的大作中提到】 : 定义一个函数指针 MyFun
|
h**k 发帖数: 3368 | 4 VC++里的
The __stdcall calling convention is used to call Win32 API functions. The ca
llee cleans the stack, so the compiler makes vararg functions __cdecl. Funct
ions that use this calling convention require a function prototype.
【在 b****g 的大作中提到】 : not exactly : I remember that _stdcall is a Win32 calling conventions which has some : features, but I don't remember what are the features
|
P***y 发帖数: 2885 | 5 defined a new functional type name
【在 b****g 的大作中提到】 : What is this doing? : typedef int (__stdcall *MyFun)(int a, void *b);
|