-1

Hello I can not load the dll from a selected folder using the Windows LoadLibrary receives a conditional statement "can not load library" Here's the code.

drewag
  • 93,393
  • 28
  • 139
  • 128

1 Answers1

0

Two things. First, find out what the reason for failure is by calling 'GetLastError'. You will need to translate the code to a string, or look it up online. Second, it is likely that some dependent DLL loaded by your DLL is not in the current directory or your path or one of the directories enumerated her:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx

Carey Gister
  • 141
  • 1
  • 9