用CVI写的基于TestSand的操作界面,一直有个告警,在TS自带的源代码上改的,求大神看看什么问题,谢谢提示这句传递的指针不兼容
errChk(TSUI__ApplicationMgrEventsRegOnUIMessageEvent (gMainWindow.applicationMgr, ApplicationMgr_OnUserMessage, NULL, 1, NULL));
报错信息
296, 5 warning: incompatible pointer types passing 'HRESULT (CAObjHandle, void *, TSUIObj_UIMessage) __attribute__((cdecl))' to parameter of type '_ApplicationMgrEventsRegOnUIMessageEvent_CallbackType' (aka 'HRESULT (*)(CAObjHandle, void *, TSUIObj_UIMessage, VBOOL *) __attribute__((cdecl))')
|