and I'm having problems blitting. I'm using ddutil.cpp that comes with directx 6.1.
Here is a part of my code:
g_pVaisseau = DDLoadBitmap(g_pDD, "vaisseau.bmp",0,0);
RECT rectSrc, rectDest;
rectSrc.left = rectSrc.top = 0;
rectDest.left = rectSrc.top = 0;
rectSrc.right = rectSrc.bottom = 150;
rectDest.right = rectDest.bottom = 150;
hr = g_pDDS->Blt(&rectDest, g_pVaisseau, &rectSrc, DDBLT_WAIT,NULL);
hr = g_pDDS->Flip(NULL, 0);
if (hr == DD_OK)
if (hr = DDERR_SURFACELOST)
if (hr != DDERR_WASSTILLDRAWING)
My program start without problem, but nothing is drawn to the screen. My application quit normally when I press ESC which means the prog isn't freeze.
Know my problem?