Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DirectDraw GetCaps() fails

1 view
Skip to first unread message

Michael Marshall

unread,
Dec 12, 1997, 3:00:00 AM12/12/97
to

I'm building the "rockem" sample from the DX5 sdk.

At one point there is a call to IDirectDraw::GetCaps, and
the DDERR_INVALIDPARAMS error is returned. I've
zeroed out and set the dwSize member of both DDCAPS
parameters, so I'm confused as to what the problem
could be. Here's the context:


I try calling DirectDrawEnumerate to determine if the are any devices
with 3D capabilities, and the only GUID passed to my call back is the
default NULL, so I call DirectDrawCreate with a NULL as the GUID, and
that function call succeeds.

I then make an intermediate call to IDirectDraw::GetDisplayMode to get
a surface description. Immediately afterwards, I call IDirectDraw::GetCaps
on my successfully initialized pointer from DirectDrawCreate. GetCaps,
however, returns DDERR_INVALIDPARAMS.

As I said before I've zeroed out and set the dwSize member of both DDCAPS
parameters. Is the DDERR_INVALIDPARAMS error indicative of another
problem?

Help aprreciated.

Mike
mars...@citilink.com

0 new messages