This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Development Status Update 2


Harold 
You can use libddraw.a and headers from John Fortin.  There is a link at
http://sources.redhat.com/cygwin/xfree.

Suhaib

-----Original Message-----
From: Harold Hunt [mailto:Harold@compasstechnologies.com]
Sent: Tuesday, November 21, 2000 9:21 PM
To: 'cygwin-xfree@cygwin.com'
Cc: 'cgf@redhat.com'
Subject: RE: Development Status Update 2


Chris,

I gave the Cygwin headers another go and was able to, eventually, compile
with them.  One minor pain I encountered will manually including the Cygwin
Win32 API headers was that a macro used by winnt.h was defined in windows.h,
but not in winnt.h; to compile I had to copy the macro out of windows.h and
past it into my source file as I show at the end of my email.  Of course, it
would be nice if this macro was defined somewhere other than windows.h... :)

I will still need to access a couple DirectDraw functions from XWin.exe; I
notice that /lib/libddraw.a exists but there is not a /usr/include/ddraw.h.
Can I expect a ddraw.h header anytime soon?  Or, should I stick with the
Wine header for that?  (I'd really like to move away from Visual C++, to
open this project up to as many developers as possible).

For now I'll use the Cygwin Win32 API headers, as below.  Thanks for kicking
me and making me try again :)

Harold

#ifndef _ANONYMOUS_STRUCT
#define _STRUCT_NAME(x) x
#define DUMMYSTRUCTNAME	s
#define DUMMYSTRUCTNAME2 s2
#define DUMMYSTRUCTNAME3 s3
#else
#define _STRUCT_NAME(x)
#define DUMMYSTRUCTNAME
#define DUMMYSTRUCTNAME2
#define DUMMYSTRUCTNAME3
#endif

#include <stdarg.h>
#include <windef.h>
#include <wincon.h>
#include <basetyps.h>
#include <excpt.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]