怎么使用函数指针?
WINXP,VC6
在一个DLL中存在函数int function(int, int );
要动态调用的话
是不是如下:
typedef int(*f)(int,int);
f newF;
hModule = LoadLibrary(libraryName);
newF = (f)GetGetProcAddress(hModule,"function");
可是在f newF这一句编译不过去,提示
illegal use of this type as an expression 和
missing ';' before identifier 'newF'等
这是什么问题?