|
-
June 18th, 2012, 01:56 AM
#31
Re: CreateCompatibleBitmap failed
 Originally Posted by Igor Vartanov
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
-
June 18th, 2012, 03:43 AM
#32
Re: CreateCompatibleBitmap failed
 Originally Posted by Ralf Schneider
MikeAThon already pointed out what's wrong. No one knows what are those "tXXXX" types are.
Secondly, and again, instead of snippets, how about a small program that shows the error? How hard is it to create a tiny but full program that demonstrates the error? If the problem are those 3 lines you posted, then it can't be that difficult to write a program that uses those 3 lines, right? Shouldn't that be your next move, instead of us having to guess what the issue is?
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|