Because the wrong palette is accidentally being used when calculating the required size of the bitmap, the File->Save command will sometimes fail.
Solution: Select the correct palette into hDC before call to GetDIBits in function AllocRoomForDIB. Or even better, avoid unnecessary calls to CreateDC by passing the hDC handle directly to AllocRoomForDIB.
Just wondering something... Do you (the author) know how to make your screen capture app capture images as they're played via microsoft's media player? Whenever you capture a window or the desktop, the media player's picture are is always blank. I think this has something to do with direct x and I'm trying to find a way to capture a desktop image including something that is drawing via directx on a region of the screen.
nice example programm, but there is a "memory-eater"
in your programm. so, take a look at the (global-system)memory and capture the desktop again and again, you see that the programm need's more and more memory!
i can't find the place where it is?!
i someone has found it please send me a email!