dll调用时函数参数为函数指针的问题
隐士调用
函数定义为:
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
不知何故? 哪位大侠帮忙看看