This site is no longer active and is available for archival purposes only. Registration and login is disabled.

PocketFrog: Windows Mobile 5


PocketFrog: Windows Mobile 5

Postby tarokker » May 18, 2006 @ 2:27pm

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


Postby Presto » May 18, 2006 @ 2:35pm

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
<a href="http://www.pocketadventures.com/travel.asp"><img src="http://www.pocketadventures.com/images/ttc_banner.gif" border="0"></a>
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby tarokker » May 18, 2006 @ 2:40pm

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


Postby Presto » May 18, 2006 @ 2:51pm

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
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby tarokker » May 18, 2006 @ 2:56pm

Perfect! Thanks a lot!!
tarokker
 


Postby jaguard » May 18, 2006 @ 4:37pm

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby tarokker » May 18, 2006 @ 4:50pm

tarokker
 


Postby Kzinti » May 18, 2006 @ 5:53pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Presto » May 18, 2006 @ 7:26pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron