Odd error when using GetDIBits
-
Guys, I am trying to make a call to retrieve the bitmap information from a drawing context. When calling GetDIBits, it returns NULL and when I call GetLastError() it gives me ERROR_FILE_NOT_FOUND. Could anybody shed some light on what exactly it is that Windows is trying to tell me?
-
Guys, I am trying to make a call to retrieve the bitmap information from a drawing context. When calling GetDIBits, it returns NULL and when I call GetLastError() it gives me ERROR_FILE_NOT_FOUND. Could anybody shed some light on what exactly it is that Windows is trying to tell me?
-
Guys, I am trying to make a call to retrieve the bitmap information from a drawing context. When calling GetDIBits, it returns NULL and when I call GetLastError() it gives me ERROR_FILE_NOT_FOUND. Could anybody shed some light on what exactly it is that Windows is trying to tell me?
To add to Moaks reply... You're passing NULL for "LPVOID lpvBits" parameter, correct? If so, have you initialized the struct pointed to by the "LPBITMAPINFO lpbi" parameter properly? Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder