From: esstech AT ess400 DOT com (Paul Herzog) Subject: LoadLibrary() from DLLMain 29 Aug 1998 20:40:52 -0700 Message-ID: <01BDD36C.B38CA6B0.cygnus.gnu-win32@sparkle.powerpg.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit To: "'GNU-WIN32'" 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 ??? frustrated. -- Paul Herzog - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".