110,533
社区成员
发帖
与我相关
我的任务
分享
typedef int (*FunA)(int a);[;/code]
还定义了一个注册回调函数的方法:
[code=c]bool RegisterFunA( FunA pFunA);
class ABC
{
public int delegate FunADelegate( int a);
public int FunA(int a)
{
return a;
}
[DllImport("mycom.dll")]
public extern static Bool RegisterFunA( FunADelegate pFunA);
public static bool Main()
{
ResisterFunA( FunA );
}
typedef int (*FunA)(int a);
还定义了一个注册回调函数的方法:
bool RegisterFunA( FunA pFunA);