程序中:
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则编译通过,可以运行无错
如果什么都不写,编译通过,运行报错
不知道设么原因,请各位大大解惑,谢谢!