Jump to content
  • Advertisement

Archived

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

BA

DDColorControl not available

This topic is 6067 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!