delphi部分代码实现:
procedure notice();cdecl;stdcallC++部分定义:
typedef void (*NoticeMethed)();
//设置回调函数
DllExport int SetNotic(int winId,NoticeMethed method)
{
CBaseQuote* ptr = CQuoteMgr::GetInstance(); log(LL_ERROR,"DllExportNotice SetNotic Methed is 0x%x!\n",method);
ptr->SetNotic(winId,method);
return 0;
}
c++ SetNotic函数把method赋值给m_noticebackC++使用m_noticeback()报错这是什么原因,求大神解答,谢谢
procedure notice();cdecl;stdcallC++部分定义:
typedef void (*NoticeMethed)();
//设置回调函数
DllExport int SetNotic(int winId,NoticeMethed method)
{
CBaseQuote* ptr = CQuoteMgr::GetInstance(); log(LL_ERROR,"DllExportNotice SetNotic Methed is 0x%x!\n",method);
ptr->SetNotic(winId,method);
return 0;
}
c++ SetNotic函数把method赋值给m_noticebackC++使用m_noticeback()报错这是什么原因,求大神解答,谢谢
解决方案 »
- 请教一下,如何将结构类型存入byte数组?
- quickreport,adotable,设计时预览可以但是运行时调用QuickRep1.Preview出错:Invalid variant type conversion
- 如何用TidFTP判断服务器上有文件,有文件就下载!
- 请问怎样转换为中文的日期!
- TcomboBox中不能用繁体输入法输入繁体中文。请帮忙,有办法吗?
- 如何取出dbgrid选定行的值?
- delphiXE 有ORM 控件没?
- 关于ADO和XML的问题,多谢指导,马上给分
- 我想问一个progressbar控件的使用问题。
- 一个控制客户端数量的问题?
- delphil 插sqlserver 使用事务
- idicmpclient 组件 使用 PING 后的错误提示
procedure notice();应该是cdecl,不要用stdcall。