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 wrongCodePudding user response:
Depends view, possibly DLL other dependent DLLCodePudding 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 DLLCodePudding user response:
It depends on what the coon call, loaded what resources, DLL, etcCodePudding 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