From: Gilles DOT Depeyrot AT wanadoo DOT fr (Gilles Depeyrot) Subject: [HELP] Loading Mingw32 built DLLs into an MSVC application (again) 18 Sep 1998 06:11:48 -0700 Message-ID: <199809171837.UAA21812.cygnus.gnu-win32@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" To: Hello everyone, I've been trying on and off for several months to create a DLL using egcs and loading it into an MSVC 5.0 compiled application under Windows 95. The problem I am encountering is that I succeed in building a relocatable DLL (at least I think it is) with egcs and have no problem loading it either with a small test program compiled either with egcs or with MSVC. However, I have never succeeded in loading my sample DLL into my real life application. LoadLibrary returns NULL and GetLastError returns 0 ! My previous tests had failed with egcs 1.0.3. Following the release if egcs-1.1 for win32, I downloaded and installed the package, updated my makefiles to use the new dllwrap and dlltool utilities and recreated my DLL with no problems (egcs even understands __declspec(dllexport) attributes now :-). I can load the DLL into my small test program whether compiled with egcs or MSVC but I still cannot load it into my application. So my tests have failed with egcs 1.1 and I still cannot load the DLL into my application. Does anyone have an idea what the problem might be ? I somewhat suspect it is related to the size of my application (2 Mb) and maybe a DLL relocation problem but I have no idea where to look for the problem. Thanks for any help, Gilles Gilles Depeyrot - 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".