Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Cross Platform Issues

Cross Platform Issues

Discuss PocketC for CE (including Desktop Edition)

Postby chrisleeuk on Mon Sep 30, 2002 11:02 am

Here are a few questions. (they are kind of related to each other)

What are the main issues involved in programming Pocket C
applications for different Windows CE devices?

I have seen on the forum posts about different screen co-ordinates, is this true?

How do I overcome such issues?

The reason I ask is that I have written a small routine to display a menu at the bottom of the screen.

This is to replace the single 'File' menu that appears on my Ipaq with Pocket C. So now I can have 'File' 'Edit' 'Options' etc
running along the bottom.

Do I need to adjust my calculations for different displays?

Also do all devices supported by Pocket C use the same kind of menu?
Formulation, Visual Environment for Pocket C - http://Formulation.0catch.com (in development)
chrisleeuk
 
Posts: 31
Joined: Fri May 10, 2002 7:40 am

Postby guy on Mon Sep 30, 2002 11:23 am

You need to make substantial changes to make menus work on the non-pocketpc format ce platforms.

You can lift all of the calculations from my menu bar library (cmdbar) that produces menus in the right place on all CE platforms. Download it from the library link in my sig below.

My library makes use of a standard V3 compiler macro (<b>__PKTC__</b>) to conditionally compile code for old PocketC V2 and for V3 (V3 supports the deviceplatform() function that tells you the device type). Unfortunately a bug introduced in the latest PocketC compiler means that the compiler macro is no longer automatically defined by the compiler. This is in the cmdbar_init() function at the top of the code. Just always include the __PKTC__ bit.

The windefs.h included in the ZIP file is possibly a bit out of date. There's an updated one in the CEAPI download.

The menu library doesn't use CEAPI, it just shares the download page.

Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
guy
 
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Postby KOU on Tue Oct 01, 2002 8:16 pm

I have a problem with your PocketC Menu library.
I am using PocketPC (E700, Japanese ver of EM500 with added memory), but the menu don't display at the bottom.

deviceplatform() returns 4 (PocketPC).

Kou

P.S. Listview in CEAPI still does not work in PocketPC.
-----I tried the sample Mickle provided in your knowledge base.
-----It seems that it work in other platforms. (ex. HPC)
KOU
 
Posts: 92
Joined: Mon Mar 18, 2002 8:04 pm
Location: USA

Postby guy on Wed Oct 02, 2002 7:54 am

The latest version of pceditor has a bug where it doesn't define the __PKTC__ macro.

The menu library has a #ifdef __PKTC__ around the call to deviceplatform() so that it still works in PocketC V2 (which didn't have the deviceplatform() function).

Edit cmdbar.pc and remove the #ifdef block around the call to deviceplatform(), or edit your source file and add a #define __PKTC__ before the includes for cmdbar.h and cmdbar.pc

Or, edit default.dat and put in all of the static defines that the compiler used to provide. Obviously the line and date ones can't be done this way.

I'm gearing up for another release of CEAPI (even though I said I wouldn't). I'll have another look at listview before I build everything.



Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
guy
 
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Postby KOU on Wed Oct 02, 2002 6:33 pm

Thank you very much guy!

KOU
KOU
 
Posts: 92
Joined: Mon Mar 18, 2002 8:04 pm
Location: USA


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest

cron