[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4675: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4677: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4678: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4679: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
PocketMatrix • View topic - workaround: don't call IMGDECMP.DLL
This site is no longer active and is available for archival purposes only. Registration and login is disabled.

workaround: don't call IMGDECMP.DLL


workaround: don't call IMGDECMP.DLL

Postby CodeFlatter » Apr 5, 2009 @ 1:10pm

CodeFlatter
pm Member
 
Posts: 12
Joined: Mar 3, 2009 @ 8:38pm
Location: Germany


Postby PsychoChris » Apr 5, 2009 @ 8:37pm

Hi CodeFlatter,

i would suggest to completely avoid using SHLoadImageFile() for Windows Mobile 5.x and higher since it has some known issues regarding large images that lead to unpredictable failures while loading some images. Also avoid imgdecmp since it is deprecated. Better use the .
It also supports loading thumbs, sizing operations, different decoders and also runs under pure WinCE. Only drawback: A little bit more code and usage of COM. But it is worth the effort.

Regards,
Chris[/url]
PsychoChris
pm Member
 
Posts: 45
Joined: Jul 17, 2006 @ 11:47pm


Postby Presto » Apr 6, 2009 @ 2:43pm

All of my games use the SHLoadImageFile, and I haven't run into any problems. In fact, I don't think I even started using that until WM5 because the original code became deprecated.

PsychoChris, do you know how large the image needs to be to start having problems? I know 240x1400ish work just fine.

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


Thx 4 info

Postby CodeFlatter » Apr 6, 2009 @ 8:44pm

Thanks at PsychoChris and Presto! :)

I will see if I find code examples to use imaging api, com code is more complex...

Best regards
CF :roll:
CodeFlatter
pm Member
 
Posts: 12
Joined: Mar 3, 2009 @ 8:38pm
Location: Germany


Postby PsychoChris » Apr 6, 2009 @ 10:58pm

@ Presto:
We encountered not clearly reproducable problems using SHLoadImageFile() with images of dimensions 1600x1200 or larger. Especially images created by cameras of mobile devices. Those images loaded most times fine in the emulator but return NULL handles on devices although memory on the device was more than sufficiant. You can find similar issues by googling around. Solutions suggested by microsoft developers always pointed out avoiding that function and using Imaging API (see for instance).
Using the Imaging API we didn't encounter those problems anymore.


@ CodeFlatter:
Take a look at . It shows you how to implement loading images with Imaging API for WM 5.x and higher and also includes a fallback solution for older devices not providing that API.


Regards,
Chris
PsychoChris
pm Member
 
Posts: 45
Joined: Jul 17, 2006 @ 11:47pm


THX

Postby CodeFlatter » Apr 7, 2009 @ 9:24am

Hello PsychoChris,

thx 4 the link, this page is helpfull - but use MFC code (no one of my mobile app's use MFC).
I need an example without MFC (using of MFC is impossible for me) or an simple code snipped...

Regards, CF
CodeFlatter
pm Member
 
Posts: 12
Joined: Mar 3, 2009 @ 8:38pm
Location: Germany


Postby PsychoChris » Apr 7, 2009 @ 12:57pm

PsychoChris
pm Member
 
Posts: 45
Joined: Jul 17, 2006 @ 11:47pm


Nice!

Postby CodeFlatter » Apr 7, 2009 @ 1:08pm

CodeFlatter
pm Member
 
Posts: 12
Joined: Mar 3, 2009 @ 8:38pm
Location: Germany


Postby Presto » Apr 8, 2009 @ 2:27pm

<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 CodeFlatter » Apr 9, 2009 @ 9:14am

Thx Presto and dito. :-)
CodeFlatter
pm Member
 
Posts: 12
Joined: Mar 3, 2009 @ 8:38pm
Location: Germany


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