Home > Software engineering >  Error loading third-party DLL in the Load library fail!
Error loading third-party DLL in the Load library fail!

Time:11-07

HINSTANCE hInst=: : LoadLibrary ((" RTDBInterface. DLL "));
If (hInst==NULL)
return 1;
Typedef int (* InitConnect) (char * strParameters [], long nCount);
InitConnect coon=(InitConnect) GetProcAddress call (hInst, "InitConnect");

Ret=coon (path1, 2);

HInst after execution is not NULL, but call coon console for "load library fail",

This is how to return a responsibility?

CodePudding user response:

Look to add a breakpoint debugging, what's wrong

CodePudding user response:

Depends view, possibly DLL other dependent DLL

CodePudding user response:

Possible to load the DLL has other additional conditions, before I call a DLL, in the company to create the Shared memory to load the DLL

CodePudding user response:

It depends on what the coon call, loaded what resources, DLL, etc

CodePudding user response:

InitConnect... The function name is wrong, because some of the c + + function is derived InitConnect @ XX, suggest use the Depends to see what is the exact name of export function
  • Related