PocketMatrix forums

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

PocketFrog: Windows Mobile 5

Hi,
i compiled an application with Embedded Visual C++ 3.0 that works without problems on PPC2002 and 2003.

When i try to launch on a WM5 pocketpc, it just crashes!
I use my own picture loader (that doesn't rely on PPC API's) so this should be safe!

Do you know if .exe compiled with evc3 will run on wm2005? Maybe i should try compiling it with EVC4?

Thanks in advance for your support!
Yes, it should work. I compile all of my games using eVC3, and they work on everything from PPC2002 to WM5.

Did you change the core PF image loading stuff, or just add your own image loader? If you didn't change the core, it could still be looking for a non-existent imgdecmp.dll, which could be the cause of the crash.

-John
Thanks a lot for your time Presto!

Yes i realized just now i changed only LoadImage leaving DecompressImage as is (i read just now some threads on this forum); so i need to patch PF anyway!

I find several patches on this forum, but looks like that some solutions can work on wm2005 and not on 2002 or viceversa.

Did you found a solution compatibile with PPC2002->2005?

Thanks in advance!
There are basically two solutions that I know of:
http://www.pocketmatrix.com/forums/view ... hp?t=22270

One, by Jaimi, replaces the imgdecmp.dll stuff with IImagingFactory. From what I understand, this works on 2002 and higher and is pretty-much totally transparent to the original image loading functionality. (Though I think someone said there was one early 2002 device that it didn't work on, but that's not so bad.)

The other, by me, replaces the imgdecmp.dll stuff with the shell functions introduced in PPC2002: SHLoadImageResource and SHLoadImageFile. This works on 2002 and higher also. It won't work for passing in a buffer of data to create the image though, but works perfectly for loading from files or resources.

Good luck,
-John
Perfect! Thanks a lot!!

One, by Jaimi, replaces the imgdecmp.dll stuff with IImagingFactory. From what I understand, this works on 2002 and higher and is pretty-much totally transparent to the original image loading functionality. (Though I think someone said there was one early 2002 device that it didn't work on, but that's not so bad.)

Actually, there are more than one device where it doesn't work, maybe all H38xx and H39xx. And it's no good because I will have to have a separated installer for these devices. Now confirmed - when I removed IImagingFactory and reverted back to standart pocketfrog it did work properly on these devices.
Uhm...

maybe we can use SystemParametersInfo to get pocket pc info and use imgdecmp.dll for the old pocketpcs (2002) and patched version for >2003 ?

This could help keeping the same exe for different platform..
But as far as i know, SystemParametersInfo gives the OEM string that identify the pocketpc (ie: the pocketpc model name)

So we could match all possible 2002 identifier strings and use older code (this may be a large list!!);
or there is a better way to detect if exe is running on 2002 devices?
Just try to use imgdecmp.dll... If it doesn't work, try other method.
Or you can use my SHLoadImageFile and SHLoadImageResource customization. I only use external files and internal resources, so it works for all of my games.