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.
Asked
Active
Viewed 93 times
-1
-
3Please *add* the code to the question rather than linking to a *picture* of the code – Alex K. Jul 27 '14 at 16:52
-
Also, what is the exact error code that you're getting? – Timo Geusch Jul 27 '14 at 16:53
-
What does `GetLastError()` have to say? Do you really want to load from the root of C: ? – Alex K. Jul 27 '14 at 16:53
1 Answers
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