不知道怎么回事
delphi正常
unit SmppImport;interface
uses windows;
//初始化接口
function IFInitInterface(
                  dwCodeProtocol:DWORD ; //编码协议
                  dwDriverProtocol:DWORD ; //通讯协议
                  pDriverParam:LPCTSTR  //通讯协议参数
                  ):integer;stdcall;external 'SMEIDll.dll';//退出接口
function IFExitInterface():integer;stdcall;external 'SMEIDll.dll'
VC下这样就出错了~~
HINSTANCE hinstDLL; 
hinstDLL=LoadLibrary("SMEIDll.dll");
if (hinstDLL)
FreeLibrary(hinstDLL);