I am trying to use the following code:
LoadLibraryExA(filename.c_str(), NULL, DONT_RESOLVE_DLL_REFERENCES);
To load a C++\CLR dll from a native assembly.
The HMODULE
returned is NULL
and the GetLastError
returns - 193
which means is not a valid win32 application
How can I load the library correctly? What am I doing wrong? Thank you! Ron