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

Windows mobile 5, imgdecmp.dll fix


Windows mobile 5, imgdecmp.dll fix

Postby Jaimi » Sep 30, 2005 @ 2:44am

Hi -

I've made a fix for DecompressImage() so that it works on windows mobile 5. This uses the IImagingFactory interface that was introduced in the Windows Mobile 2003 sdk, and no longer needs the imgdecmp.dll.

Is anyone interested in the changes? The IImagingFactory interface dates back to 1999, and should work on all devices.
Jaimi
pm Member
 
Posts: 12
Joined: Sep 29, 2005 @ 5:23pm


Postby BIGBEN » Sep 30, 2005 @ 3:39am

Sure :D

You can see it from this thread:



You can include my Bugfix if you want to ;)

Or I can include your code in bugfix as PF improvement, if you don't mind.

You said 2003 SDK, does this mean it wouldn't work on 2000 and 2002 devices?
Or you check WM version to use this method only on WM 5 devices?
Last edited by BIGBEN on Sep 30, 2005 @ 4:22am, edited 1 time in total.
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Jaimi » Sep 30, 2005 @ 3:56am

Jaimi
pm Member
 
Posts: 12
Joined: Sep 29, 2005 @ 5:23pm


Postby Jaimi » Sep 30, 2005 @ 3:58am

Jaimi
pm Member
 
Posts: 12
Joined: Sep 29, 2005 @ 5:23pm


Postby fast_rx » Sep 30, 2005 @ 4:14am

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby BIGBEN » Sep 30, 2005 @ 4:32am

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Jaimi » Sep 30, 2005 @ 4:44am

Attachments
supersample.zip
(33.36 KiB) Downloaded 1579 times
Jaimi
pm Member
 
Posts: 12
Joined: Sep 29, 2005 @ 5:23pm


Postby Jaimi » Sep 30, 2005 @ 4:46am

Jaimi
pm Member
 
Posts: 12
Joined: Sep 29, 2005 @ 5:23pm


Postby BIGBEN » Sep 30, 2005 @ 6:37am

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Slim » Sep 30, 2005 @ 8:23am

Slim
pm Member
 
Posts: 17
Joined: Aug 30, 2004 @ 3:04pm
Location: Sweden


Postby Jaimi » Sep 30, 2005 @ 9:14pm

Jaimi
pm Member
 
Posts: 12
Joined: Sep 29, 2005 @ 5:23pm


Postby Presto » Sep 30, 2005 @ 10:25pm

Coincidentally I just finished up my changes to PocketFrog to use SHLoadImageFile and SHLoadImageResource.

These changes work without requiring any extra stuff, including the IImagingFactory interface. Since both of the SHLoadImage functions return HBITMAPs, and there's already a CreateSurface() function that takes an HBITMAP, it's much cleaner this way.

A couple of notes:
1) Download the right version ( PF 0.7 or 0.8 )
2) SHLoadImageResource only seems to look for images in a "GIF" resource folder... pretty flippin' ignorant of Microsoft... so I changed the default from "image" to "GIF" in image.h.
3) Only PPC 2002 and above support SHLoadImage, so you'll have to drop support for PPC 2000. (But I don't think anyone will have a problem with that.)

http://www.pocketadventures.com/downloa ... ge_src.zip
http://www.pocketadventures.com/downloa ... ge_src.zip

-John

[EDIT: The files at PM vanished, and the upload utility isn't working, so I'm hosting them at PocketAdventures.com.]
Last edited by Presto on Nov 20, 2006 @ 4:18am, edited 5 times in total.
<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 Jaimi » Oct 1, 2005 @ 12:58am

Just to set it straight, the IImagingFactory code doesn't require any new stuff either -- it's been built into the operating system since 1999.

Not saying that people shouldn't use yours (or that mine is better), but for me, the reason that I choose IImagingFactory over SHLoadImageFile (besides the GIF issue), is because IImagingFactory supported loading images straight from a buffer, and was a drop-in replacement for DecompressImage. Since I wanted to support loading textures from "pak" files, I needed this functionality.

This link is my entire PocketFrog directory. It includes the latest updates to pocketfrog 0.8.1 (from BigBen) and the latest PocketHal.

Jaimi
pm Member
 
Posts: 12
Joined: Sep 29, 2005 @ 5:23pm


Postby Presto » Oct 1, 2005 @ 2:47am

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


Postby BIGBEN » Oct 1, 2005 @ 6:36am

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Next

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