加载第三方dll出现 Load library fail错误!
木有童年 2020-07-03 03:23:42 HINSTANCE hInst = ::LoadLibrary(("RTDBInterface.dll"));
if(hInst == NULL)
return 1;
typedef int (*InitConnect)(char* strParameters[],long nCount);
InitConnect coon = (InitConnect)GetProcAddress(hInst,"InitConnect");
ret=coon(path1,2);
执行后hInst不为NULL,但调用coon时控制台出线“load library fail”字样。
这是怎么回事?