Original Post
hi,
i posted a quuestion yesterday, i fixed the problem i had, but then realize that something else is messed up with my code. (i''m new to direct draw, all i''ve done before is direct3d).
When my game calls lpdds->GetDC(&hDestDC), it either frezes the game or if i''m debugging the game it prevents the screen from being updated. The computer doesn''t freze, i can shut it down nicely (without toutching the power button) but MSVC stays on the screen after i''ve closed it and began to shut down the compter (using keyboard shortcuts)
lpdds is passed as an arguemnt in the function, the function that calls this function uses LPDIRECTDRAWSRFACE7 lpddsOffscreen which is created with the following code:
....
ddsd.dwHeight=280;
ddsd.dwWidth=320;
if(FAILED(lpdd7->CreateSurface(&ddsd, &lpddsOffscreen, NULL)))
return E_FAIL;
what''s happening