delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/29/20:40:52

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
To: "'GNU-WIN32'" <gnu-win32 AT cygnus DOT com>

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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019