CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 32 of 32
  1. #31
    Join Date
    Jul 2001
    Posts
    306

    Re: CreateCompatibleBitmap failed

    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

  2. #32
    Join Date
    Apr 1999
    Posts
    27,449

    Re: CreateCompatibleBitmap failed

    Quote Originally Posted by Ralf Schneider View Post
    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
    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

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured