Mar 4, 2014 at 11:42am UTC
According to MSDN image lists support 32-bit bitmaps and icons, and 32-bit bitmaps can be opened with LoadImage by specifying LR_CREATEDIBSECTION.
However, LoadImage always fails to open a 32-bit bitmap. I can't even import it as a bitmap resource in VS2010. It opens fine in any image editor.
Two questions:
1) Why do you suppose LoadImage is failing?
2) How can I import a 32-bit bitmap as a resource (in case I need to use a different API to load the bitmap I still want it to be a resource)
Mar 4, 2014 at 3:38pm UTC
Have you tried GetLastError() to see why the function says it was failing?
Mar 4, 2014 at 3:40pm UTC
I remember some programs have issues with 32-bit bitmaps.
Try to change your editor.
Mar 6, 2014 at 11:21am UTC
Huh... I downloaded a program called Pixelformer, exported my bitmap from there and it seems to work now. Kind of strange that GIMP would have issues with that.
Anyway, thanks.
Mar 6, 2014 at 1:27pm UTC
GIMP is one of the known programs to have this issue.
I had issues with it, too.
Sadly, what you just did is the only solution.