Archived

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

DirectDraw7: Lock Surface never succeeds...

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

Hi there, I am currently working on a simple wrapper class for my DirectX related stuff. I am using DirectDraw7 for the graphics and built a colordepth independent and windowed/fullscreen capable simple engine. But for now I am really stuck: whenever I try to Lock for instance the backbuffer (to draw some pixels etc) I get a HRESULT of the value 1. The meaning of 1 is something like "Call successful, but returned FALSE"... I've done a lot of debugging in windowed mode so far, but have really no idea what might be the reason... all the DX function calls return success. In fullscreen I build a primary surface and an attached backbuffer. In windowed mode I build just a primary surface with a clipper (attached to the window, of window's size) and the "backbuffer" as an offscreen surface that can be blitted to the primary surface. What might be the reason for the Lock being invalid ... Thanks for any help! [edited by - perkele on September 10, 2002 7:22:25 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Maybe you should post the code so we can see if you''re doing something wrong?

Share this post


Link to post
Share on other sites