隐士调用
函数定义为:
extern "C" __declspec(dllimport) int Startup(char* LocalIp,,void (* fProcessDeliver)(DeliverStr deliver));
DeliverStr为一已定义结构
void CMyDlg::PDeliver(DeliverStr deliver) //定义
{ ...
}
调用时
int res = Startup("10.10.10.10", ,PDeliver);
其他的地方没错 只一处PDeliver有问题
cannot convert parameter 14 from 'void (struct deliverstr)' to 'void (__cdecl *)(struct deliverstr)'None of the functions with this name in scope match the target type
不知何故? 哪位大侠帮忙看看
函数定义为:
extern "C" __declspec(dllimport) int Startup(char* LocalIp,,void (* fProcessDeliver)(DeliverStr deliver));
DeliverStr为一已定义结构
void CMyDlg::PDeliver(DeliverStr deliver) //定义
{ ...
}
调用时
int res = Startup("10.10.10.10", ,PDeliver);
其他的地方没错 只一处PDeliver有问题
cannot convert parameter 14 from 'void (struct deliverstr)' to 'void (__cdecl *)(struct deliverstr)'None of the functions with this name in scope match the target type
不知何故? 哪位大侠帮忙看看
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货