PocketMatrix forums

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

Possible Problems with new Image loader/casios.....

Since the release of Gapi102 I have started converting my games over to PNG format. It works on most devices, but I have a Casio tester(EM 150) wich It doesnt even seem to load. The old BMP version works, but the newer PNG one doesnt show anything like it never loaded a picture. Is it possible he doesnt have the DLL the image loaders use?
Hi,

EM-150?

I haven't heard of it. Is it the E-105? The E-105 is the same as E-115 except that it runs WCE 2.11. Since GapiDraw 1.01 used it's own BMP-loader it worked on most devices, but with the introduction of the new image format the file IMGDECMP.DLL (available on all PocketPCs and Smartphones) is necessary.

/Johan
Here is the list of devices my beta testers tested Pocket War on (I am using GapiDraw and pngs) Jornada 567, Casio e-125 & be-300 & eg-800, iPaq 3850 & 3650 & 3670, Jornada 540. Everything looks good so far on those platforms. On the desktop side I am having problems on Windows ME but I have not found out if it is me or gapidraw yet. It has been tested on Win2k and runs there without a problem.[/list]
windows ME. Bain of Microsoft. When I worked there it was looked apon as the ugly red-headed step-child. Noone wanted to support it, work with it, or test on it.
Ok so I was misinformed on what device I'm having problems on. Its an EM125, When i use the old GapiDraw101 it loads bitmaps fine, but I tried the new 102 and It runs the program, but doesnt show anything. I tried it with PNG's first, then back to bitmaps. Any Idea on what i could be doing? It works correctly on my jornada 548 when I run it....
Very strange. Do you load your images from file?

You could try to send your tester one of the demo applications bundled with gapidraw (all of which use PNGs) and see if it works on his/her machine.

/Johan
Hmm your GapiDemo works.... All i change is the loading function to TEXT("PNG"). Maybe it something I'm doing wrong but it works on my device so its hard to track down.

If you happen to read this, i have another question. Can I manually destroy a surface? Like if i needed to create a quick scratch buffer, but dont need it afterwords? I tried to use the backbuffer for this, but on the same casio em125 it garbled the image(im guessing its due to different orientations of the buffers?)
Could he be running into the fact that the new load routines attempt load from the app's location instead of from the system root? (unless a / is in the path)
Hosed: I was thinking about this too... Perhaps different betatesters placed the file in different locations?

Anon: Just create a new surface "scratchsurface". If you really want to free all memory allocated by it you could simply call CreateSurface(0, 0, 0) when you're done. Otherwise all memory allocated by it will automatically be freed when it's destroyed (using the destructor).
DillRye · 27 Jun 2002, 03:18 UTC — Figured it out
Ok, I was just doing something silly. I was accidentally linking Gd101.dll and gd102.dll at the same time. This apparently causes the program to not show anything, but compile correctly. I didnt catch this sooner since only the Arm/mips versions i compiled did this. For my sh3 device it worked fine. Sorry for raising this question because of a silly mistake.