All the values seem correct?
No NULL HDC's or -ve coods? (or coods off the image)
Have not wiped the HDC or BMP?
Code:
if(!BitBlt(Blah, blah,.....))
{
iError=GetLastError();
sprintf(sBuffer,"BitBlt failed with error %d.", iError);
MessageBox(hWnd,sBuffer,"App Error",MB_OK|MB_ICONERROR);
}
Look the error up in the help
0 = error success (you don't want to see this)
87 = incorrect param
ect
You are Being very careful with your GDI memory? ReleaseDC() any GetDC() and DeleteObject() any CreateXX()'s (not while selected into a DC)