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