This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: directx
- To: Derek Greene <topcoder at mindspring dot com>
- Subject: Re: directx
- From: Eric Britten <ebritten at uci dot edu>
- Date: Fri, 01 Aug 1997 12:14:08 -0700
- CC: gnu-win32 at cygnus dot com
- References: <3.0.3.32.19970731094435.00697934@mail.mindspring.com>
Derek Greene wrote:
Check out....
http://dragon.acadiau.ca/~025668b/develop/cygnus/
I have also used gnuwin32 to use OLE & COM objects. I think directx
uses a similar interface. It's not easy, you must use C not C++ for
now. C++ cleans up your code alot, but it doesn't compile the Microsoft
headers at all. For some reason the g++ is more peticular about the
location of * in a function prototype that returns a pointer.
The directx sample doesn't have any problems since it uses C.
For instance,
int * __stdcall foo();
gives an error. but
int __stdcall * foo();
does not.
Another thing is that if you declare the calling convention for a member
function of a class, the calling convention is ignored. This may pose a
problem since OLE expects stdcall for member functions of COM objects.
Hope this helps.
Eric Britten
> has ANYONE managed to port directx to gnu-win32? puh-leez say yes,
> puh-leez
> say yes....:)
> -
> For help on using this list (especially unsubscribing), send a message
> to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".