PocketMatrix forums

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

CreateSurface("test.bmp")==GDERR_INVALIDBITMAP???

Hi,

I've got a strange problem.
I just can't load bitmap files from Disk in Windows XP using gapidraw. I use Visual studio 6.
Strangely, if i compile the same program under Visual Studio Embedded for PocketPC it works.


I can load bitmaps from resources like this:
m_cursor.CreateSurface(hInst, IDB_CURSOR);

But when i try to load it from disk,
( m_cursor.CreateSurface("test.bmp");)

it always returns "GDERR_INVALIDBITMAP".

What am i doing wrong?
I tried saving "test.bmp" as 256 color, grayscale, 24 bit etc, but i always get that error.

The gapidraw documentation says: gapidraw supports Windows BMP images only, with or without RLE compression.

I tried saving it with Photoshop, MSPaint, corelphotopaint, but nothing helps.

Even the bitmaps( supplied in de gapidraw-download)
give the same error.


So, in short:
CreateSurface under windowsCE works like it should
CreateSurface under WindowsXP doesn;t work.



Please help.

Greetz,

Kaiton
Hi Kaiton,

I will investigate this on Tuesday. Please let me get back to you on this issue.

Best regards,
Johan
This bug has been verified and is corrected in GapiDraw 1.01. Thanks for the excellent error report.

/Johan