loading resource only dlls
-
I created a resource only dll and have been trying to load it into my project without much luck. The code to load the dll essentially HINSTANCE m_hinst; m_hinst = LoadLibrary(name.dll); Instead of a pointer to the dll, the return value is continually, 0x10000000. Do I have some dll project settings incorrect, or am I doing something wrong?
-
I created a resource only dll and have been trying to load it into my project without much luck. The code to load the dll essentially HINSTANCE m_hinst; m_hinst = LoadLibrary(name.dll); Instead of a pointer to the dll, the return value is continually, 0x10000000. Do I have some dll project settings incorrect, or am I doing something wrong?
if LoadLibrary() is returning 0x10000000, then 0x10000000 is the "pointer to your dll" aka the dll's load address. Bikram Singh I believe we should all pay our tax with a smile. I tried - but they wanted cash.
-
I created a resource only dll and have been trying to load it into my project without much luck. The code to load the dll essentially HINSTANCE m_hinst; m_hinst = LoadLibrary(name.dll); Instead of a pointer to the dll, the return value is continually, 0x10000000. Do I have some dll project settings incorrect, or am I doing something wrong?
There's nothing wrong.
HINSTANCE
is an opaque handle, you shouldn't care what the value is, as long as it's notNULL
which would meanLoadLibrary()
failed. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- "That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas." -- Buffy