Debug Error出错
void CClientDlg::OnReadIdcard()
{
//加载动态库
HMODULE RdCardDllLib = LoadLibrary(_T("RdCard.dll"));
CString a;
a.Format("动态库实例句柄 = %d\n",RdCardDllLib);
//printf("动态库实例句柄 = %d\n",RdCardDllLib);
MessageBox(a);
InitComm I_com = (InitComm)GetProcAddress(RdCardDllLib,"InitComm");
a.Format("InitComm地址是= %p\n",I_com);
MessageBox(a);
//初始化端口
int port = I_com(1001);
}
I_con(1001)出现Debug Error错误 ,请各位大牛帮忙看看