Page 1 of 1

PocketFrog: Windows Mobile 5

PostPosted: May 18, 2006 @ 2:27pm
by tarokker
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!

PostPosted: May 18, 2006 @ 2:35pm
by Presto
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

PostPosted: May 18, 2006 @ 2:40pm
by tarokker
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!

PostPosted: May 18, 2006 @ 2:51pm
by Presto
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

PostPosted: May 18, 2006 @ 2:56pm
by tarokker
Perfect! Thanks a lot!!

PostPosted: May 18, 2006 @ 4:37pm
by jaguard

PostPosted: May 18, 2006 @ 4:50pm
by tarokker

PostPosted: May 18, 2006 @ 5:53pm
by Kzinti

PostPosted: May 18, 2006 @ 7:26pm
by Presto