Archived

This topic is now archived and is closed to further replies.

BA

DDColorControl not available

Recommended Posts

I am trying to create a DirectDraw Color control object by the following code: m_pDDSPrimary->QueryInterface( IID_IDirectDrawColorControl, (void **) &m_pDDColorControl ); To my surprise, the result is that m_pDDColorControl remains equal to NULL. Anybody knows the reason? I am using DirectX 8.0a.

Share this post


Link to post
Share on other sites
What''s the return code from QueryInterface() ?

What does the debug spew say ? (It will say something if the call failed).

Do the caps bits for the hardware you''re using indicate that the device should support that interface ?

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The return value from the call to QueryInterface is 0x80004002, which is "No such interface supported" translated into English.

It''s my hardware that''s not supporting it. Thanks anyway.

Share this post


Link to post
Share on other sites