Archived

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

DDERR_NODC

This topic is 5126 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
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