LoadLibrary() from DLLMain

Paul Herzog esstech@ess400.com
Sat Aug 29 15:26:00 GMT 1998

I'm trying to load a DLL from DLLMain() and it works fine with msvc generated DLL's, but not with mingw32/egcs DLL's.  

Funny thing, if I try to LoadLibrary the same mingw32/egcs DLL's from a win32 executable, it loads just fine.  

When trying to LoadLibrary this mingw32/egcs DLL from DLLMain, i get a return value of 0.  GetLastError() then provides the 998 value presumably meaning some resource is busy and can not be accessed.

Is this related to both DLL's using CRTDLL ???


Paul Herzog

For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

More information about the Cygwin mailing list