delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/11/15:02:41

From: oamat AT arrakis DOT es (Oscar Amat)
Subject: using external DLL
11 Aug 1998 15:02:41 -0700 :
Message-ID: <3.0.3.32.19980811140701.00907510.cygnus.gnu-win32@pop3.arrakis.es>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

This is my first message to this list. I have been using Cygnus since its
B18 I found it very useful (and very FREE and very non-MS).

I am trying to port an application that uses DirectX. I have a working
version of libs for DirectX3 that were ported by someone whose name I don't
have here, but I want to try to do it by myself, and also I want to use
that DirectX5 thing.

So I have used the dll tool to create the import libraries using DEFs
dumped from the DLLs, I have defined the function headers I am using and
its structures (that was a LOT of work, because MS headers do not fit very
well in EGCS). I have developed a little application which runs under MS VC
5.0 (of course it does) and I am trying to port it to EGCS.

I have created import libraries for (Win95) MMSYSTEM.DLL, DDRAW.DLL and
DSOUND.DLL. I am having trouble with just DDRAW.DLL, for some reason I
don't get to know: it seems to keep searching for C++ funcion
DirectDrawCreate even when I am using extern "C". I get an error saying it
does not find DirectDrawCreate AT 12. I had this same problem with other
functions but I just had to add 'extern "C"' to their definitions and they
worked.

Maybe this is some little problem I have yet not found so I don't expect
you to give me a magic answer but some hints would be appreciated. Also,
where can I get some more info on using external DLLs on EGCS (I just have
the dlltool and the FAQ)?

Thanks.

-
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