well, since drawdibdrab turned otu to be a non-starter, Im actually using bitblt. I found a sample somewhere that I got working. Now the problem is that the only image I can blit to the screen is my prefab resource bmp. Im trying to get it to let me use a generated BMP, but I havent nailed it down yet. Here is the code :
Code:
void DrawFrame(HDC hdc){
HDC hdcMemory;
hdcMemory = CreateCompatibleDC(hdc);
//hdc = GetDC( hwnd );
hbmNoSignal = CreateDIBitmap(hdc , (BITMAPINFOHEADER *)&bufNoSignal[2] , CBM_INIT , &bufNoSignal[54] , (BITMAPINFO *)&bufNoSignal[2] , DIB_RGB_COLORS );
//ReleaseDC( hwnd , hdc );
SelectObject(hdcMemory, hbmNoSignal);
BitBlt(hdc, BMPX, BMPY, bm.bmWidth, bm.bmHeight, hdcMemory, 0, 0, SRCCOPY);
DeleteDC(hdcMemory);
}
the buffer BYTE bufNoSignal[] contains the BMP that I loaded from disk, including the initial 42 4D (BM) tag