就是定义一个函数指针。
以后可以这样用。
int * WINAPI Add()
{
return 1;
}
DLLFUNC=Add; //赋值
DLLFUNC(); //调用Add函数
-----------------------
It types a type of funtion pointer, but not a funtion pointer.
So, you can't use like that.
You can use in this way:
typedef int(*WINAPI DLLFUNC)(); //WINAPI DLLFUNC is a type now.
WINAPI DLLFUNC foo = &fun; //fun is a funtion has the same type of foo; foo is funtion pointer