Original Post
Hi, this code is resulting in an access violation after running a few seconds:
HRESULT DrawRect(RECT *lpRect, USHORT Col)
{
DDBLTFX ddbltfx;
ddbltfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwFillColor = Col;
return lpBackBuffer->Blt(lpRect, NULL, NULL, DDBLT_WAIT | DDBLT_COLORFILL, &ddbltfx);
}
Any idea why?
Johan
Johan Ersvik