Quote Originally Posted by Igor Vartanov View Post
DIB actually can be selected into DC alright. But its attributes should comply with the manner of drawing/blitting to DC. For example, in case map mode is MM_TEXT, the DIB should be top-down DIB.

Besides, the DC should be properly freed. I met a remark that using ReleaseDC instead of DeleteDC can cause an access violation.
Hello Igor,

can you see that there is something wrong in the code snippet written in the above link (http://forums.codeguru.com/showthread.php?t=523980)?

Ralf