Original Post
I am trying to write a program (using VC++) about displaying image. I take them from camera and its driver card. I obtain image buffer (YUY2 format) and I want to display image by directdraw. But I couldn't. It gives error when 'Lock'function execute. Error message is "DDERR_INVALIDPARAMS". I looked msdn and I find that : If you attempt to create a wide surface in video memory when the DDCAPS2_WIDESURFACES flag isn't present, the attempt will fail and return DDERR_INVALIDPARAMS. Note that attempting to create extremely large surfaces might still fail, even if the driver exposes the DDCAPS2_WIDESURFACES flag. { m_OffScreen->Lock(rect, &ddsd,DDLOCK_EVENT|DDLOCK_SURFACEMEMORYPTR|DDLOCK_WAIT, 0); } Could you help me ?