CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2005
    Posts
    23

    Display Bitmap in MFC

    Hello.

    I have a BITMAPINFO structure holding a bitmap I would like to write to my app window. I have tried using SetDIBitsToDevice() but the program crashes when I use this function. I appreciate any help someone is willing to give. Thank you.

  2. #2
    Join Date
    Mar 2005
    Location
    Romania,Cluj-Napoca
    Posts
    1,073

    Re: Display Bitmap in MFC

    Could you post some code because without code we can't help you.
    Please use code tags [code] [/code]

    We would change the world, but God won't give us the sourcecode..
    Undocumented futures are fun and useful....
    ___
    ______
    Gili

  3. #3
    Join Date
    May 2005
    Posts
    4,954

    Re: Display Bitmap in MFC

    Quote Originally Posted by dremmuel
    Hello.

    I have a BITMAPINFO structure holding a bitmap I would like to write to my app window. I have tried using SetDIBitsToDevice() but the program crashes when I use this function. I appreciate any help someone is willing to give. Thank you.
    look at those threads it have samples of how to use ::SetDIBitsToDevice()


    hope it helps

    Cheers
    Last edited by golanshahar; October 9th, 2005 at 03:53 PM.
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  4. #4
    Join Date
    Mar 2005
    Posts
    23

    Re: Display Bitmap in MFC

    Thank you Golanshahar, those threads gave me enough information to figure out what I needed to do. My app is now one big step closer to where it needs to be!

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