Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating a Bitmap using FromHBITMAP problem

120 views
Skip to first unread message

leiz

unread,
May 7, 2007, 9:01:51 PM5/7/07
to
Hi all,

I am using C++ and GDI+ to capture screen and save to a file. After I
captured screen, a HBITMAP is created. When I create Bitmap using
Bitmap::FromHBITMAP, I set the second parameter HPALETTE to NULL, then
I using Save to save into a file. The problem is that the file is
created but is zero length and Save returns FileNotFound error status.

Can anyone tell me what is the proper way to do this? Thank you.

Mark Salsbery

unread,
May 8, 2007, 12:18:01 PM5/8/07
to
What does the code that saves the Bitmap to a file look like?

Mark

0 new messages