Jump to content
  • Advertisement

Archived

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

Waxycat

DDERR_NODC

This topic is 5376 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 get a DDERR_NODC from the lpDDS->ReleaseDC, which means that the HDC was never created. However, this call was made immediately after the GetDC, which created the HDC and returned successfully without an error! What is the problem?

Share this post


Link to post
Share on other sites
Advertisement
You aren''t doing something like passing in the address of the HDC instead of the HDC in the call to ReleaseDC, are you?

I''ve seen people make that mistake before because GetDC requires that you pass the address whereas ReleaseDC doesn''t.

Share this post


Link to post
Share on other sites
I wasn''t doing that, I don''t see how it would even compile then. Anyway, don''t bother - I fixed it now. But thank you for your concern.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!