delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/10/24/19:36:03

From: lhall AT rfk DOT com ("Larry Hall (RFK Partners Inc 617-239-1053)")
Subject: Re: DirectDraw
24 Oct 1996 19:36:03 -0700 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <2.2.32.19961024231434.0091b9fc.cygnus.gnu-win32@ma.ultranet.com>
Mime-Version: 1.0
X-Sender: lhall AT ma DOT ultranet DOT com
X-Mailer: Windows Eudora Pro Version 2.2 (32)
Original-To: Matthew Moskewicz <moskewcz AT princeton DOT edu>, gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

At 11:45 PM 10/23/96 -0400, Matthew Moskewicz wrote:
>Rich Drewes wrote:
>> 
>> Can anyone comment on the feasibility of accessing the DirectDraw API
>> from gnu-win32?  Is this a now kind of thing, a someday kind of thing, or
>> a never kind of thing?
>> 
>> Thanks,
>> Rich Drewes
>> drewes AT interstice DOT com
>> -
>> For help on using this list, send a message to
>> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
>
>Working from only the DirectX 2 SDK, I ported most of DirectX to the
>point where I could include the (hacked) micrsoft headers to make things
>work and call all the fuctions in the ddraw.dll without error. Mind you,
>they all returned CO_E_NOTINITILIAZED ... perhaps my import lib was
>incorrect ...
>With the win32 SDK and headers, the task of porting would be trivial, as
>most of my work involed cobbling enough of RPC together from what little
>was included in the DirectX 2 SDK itself. As to weather it would ever
>work, I don't know. One would think so, but ...
>Perhaps the successor to Windows32api-0.1.2 will eliminate the need for
>hacks or the win32 SDK.
>-

If DirectX 2 is based on OLE (and what from Microsoft isn't these days!), the 
reason you got CO_E_NOTINITIALIZED from your calls is because you do not
have an OLE-aware application.  You need to call OleInitialize() somewhere 
before making the other calls (and OleUninitialize() at the end of everything).
What libraries these calls are in though, I do not know...

Larry Hall                      lhall AT rfk DOT com
RFK Partners, Inc.              (617) 239-1053
8 Grove Street                  (617) 239-1655 - FAX
Wellesley, MA, 02181

-
For help on using this list, 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