Posted by -=goda=- on 2000-03-15
> The tip with lpSurface helped, but I cant lock the surface (im using > LPDIRECTDRAWSURFACE3, not 4) because everytime I call lpDDSPrimary->Lock > it returns DDERR_INVALIDPARAMS... (see my other post, Yet another DirectX > Question)... This is your code: >HRESULT ddres; >LPDIRECTDRAWSURFACE lpDDSBack; >DDSURFACEDESC ddsd; > >ddres = lpDDSBack->Lock (NULL, &ddsd, 0, NULL); Didn't you forget this step? Maybe the &ddsd Parameter is incorrect - DirectDraw always checks dwSize. > // VERY IMPORTANT - the next two steps are crucial! > memset( &ddsd, 0, sizeof( ddsd )); > ddsd.dwSize = sizeof( ddsd ); -David- To signoff send a mail to listserver@xxxx.xx.xx with "signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home