PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

BitBlt and LoadImage

Ok, I have 2 questions.  And they should be REALLY easy.

1) How the HELL do you load a Bitmap that is not a resource in CE?  I mean this is easy in Win32.
2) Once I have it, as a HBITMAP, then all I need to do is plop it in a DC right?  That should cover my 24bit to 16bit issues, right?

This is soooo easy in Win32, and GAPI is a piece of cake too, but I can't seem to do it on the PPC with GDI.  SOURCE CODE WOULD BE SOOOOOO NICE.

Ok, I have 2 questions.  And they should be REALLY easy.

1) How the HELL do you load a Bitmap that is not a resource in CE?  I mean this is easy in Win32.


why cant you do it the same way you do it in win32, using LoadImage for example?

SHLoadDIBitmap

Thanks Digby.  Actually found it in the MSDN a little while ago.

As a quick aside.  I did find that you could get LoadImage to work in emu with LR_LOADFROMFILE, of course I had to put 0x010 because it isn't def'd.  Also I put an explicit path from the root (c:\).  Unfortunately on the PPC it returns an error 120...not supported!  ACK!  I wonder why they didn't impliment it?