What can prevent DLL loading using LoadLibrary?

I have a JD Edwards business function that is written in Microsoft Visual C ++ as a C module. I use LoadLibrary to access a third-party DLL. In a standalone test program, the code works very well. When I run it from JDE, LoadLibrary returns NULL, and GetLastError returns 126, which means The specified module could not be foundaccording to MSDN. I tried to set the full path to the DLL, and yes, I remember to double \ characters in the path. No difference.

I checked that there were no dependencies that could prevent the DLL from loading; DUMPBIN / DEPENDENTS returns the following:

WSOCK32.dll
USER32.dll
GDI32.dll
WINSPOOL.DRV
ADVAPI32.dll
KERNEL32.dll

They look like standard Windows DLLs, so I don’t understand.

+5
6
+5

LoadLibrary, . , , .

, . ProcMon, Vista, , . VPC .

+3

. -, , dll ( , , "", "" ) .

SetDllDirectory (NULL);

, DLL , , , . , .

+1

, ProcMon, , , .

0

. exe . "" .

, dll . , DLL .

0

, , - .

, , , . ​​ - ?

, JDE. , BSFN C, UBE , , . -, DLL ( ) , . , , ​​ : BSFN UBE , , .

, , www.jdelist.com.

0

All Articles