This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
[HELP] Loading Mingw32 built DLLs into an MSVC application (again)
- To: <gnu-win32 at cygnus dot com>
- Subject: [HELP] Loading Mingw32 built DLLs into an MSVC application (again)
- From: Gilles Depeyrot <Gilles dot Depeyrot at wanadoo dot fr>
- Date: Thu, 17 Sep 98 20:38:47 +0200
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 <mailto:Gilles.Depeyrot@wanadoo.fr>
<http://perso.wanadoo.fr/gilles.depeyrot>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".