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
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