程序中:
typedef int (######## *Proc)(int ,int);
HINSTANCE hins;
Proc pFunc;
if(!(hins=::LoadLibrary("DllFunction.dll"))){MessageBox("load err!");}
if(!(pFunc=(Proc)GetProcAddress(hins,"add"))){MessageBox("func err!");} m_out=pFunc(m_in,3);从DLL调用add函数,在#######位置写WINAPI则编译通过,可以运行无错
如果什么都不写,编译通过,运行报错
不知道设么原因,请各位大大解惑,谢谢!
typedef int (######## *Proc)(int ,int);
HINSTANCE hins;
Proc pFunc;
if(!(hins=::LoadLibrary("DllFunction.dll"))){MessageBox("load err!");}
if(!(pFunc=(Proc)GetProcAddress(hins,"add"))){MessageBox("func err!");} m_out=pFunc(m_in,3);从DLL调用add函数,在#######位置写WINAPI则编译通过,可以运行无错
如果什么都不写,编译通过,运行报错
不知道设么原因,请各位大大解惑,谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货