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 - CEAPI library update

CEAPI library update

Discuss PocketC for CE (including Desktop Edition)

Postby guy on Mon Jan 27, 2003 4:07 pm

Some minor bug fixes. WM_CREATE messages now contain a pointer to a copy of the CREATESTRUCT. Updates to some header files. Update to the library and to winapp.pc to allow proper menus on PocketPC devices.


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 chrisleeuk on Tue Jan 28, 2003 7:27 am

Just out of interest does the API examples contain code for the new Pocket PC menus?

If not can you point me in the right direction as regards code or functions that I need to use?

Also thanks for all the great work in extending the power of the language.:D
Your work has made a real difference to everyone working in pocket C.
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 Tue Jan 28, 2003 7:56 am

The library distribution contains a commented example program winapp.pc that displays proper menus on PocketPC, HPC... and PPC platforms. On the HPC... platform it has bitmap toolbar buttons as well as menus. It also compiles unchanged with evc (you have to rename it to winapp.cpp).

The best thing to do is to copy winapp.pc to a destop machine in order to read the comments.



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 chrisleeuk on Tue Jan 28, 2003 8:26 am

Thanks Guy,
The routine does not work on my device. I suspect it is because I am running Pocket PC 2000 rather than Pocket PC 2002.

All I get is a single button with no menu.

Has anyone else tried the routine on PPC 2000 or PPC 2002 and what result did you get?
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 Tue Jan 28, 2003 8:55 am

Was this with the download that I posted last night?

This had an update that was supposed to fix the problem. Unfortunately I had to send my PocketPC back because they sent the wrong one, the code was working before I sent it back with PocketPC2000. I did move some bits of code around afterwards however...


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 Jan 28, 2003 9:22 pm

>>All I get is a single button with no menu.
???

It worked fine with my PocketPC.
Did you select "Overwrite all files"?
Try reinstalling CEAPI.

Great job, guy!!!

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

Postby chrisleeuk on Wed Jan 29, 2003 7:35 am

Did re-install, your right it does work now I have the correct file.
Wow real Pocket PC menus in PPC!

Thanks Guy, its great that you've got/getting a pocket pc because it will make it easier to work on both platforms.

Thanks for all the hard work.
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 Wed Jan 29, 2003 4:53 pm

Forgot to mention anywhere that the new version allows you to have WM_DESTROY messages sent to your PocketC wndproc as well as WM_CREATE. For WM_CREATE you have to set a repost for HWND_BROADCAST rather than a particular window because you don't know the window handle until after it has been created, by which time you've missed the WM_CREATE.

The CREATESTRUCT passed in the lparam for WM_CREATE is a real memory structure, not a pocketc structure. The name and class fields of the structure are pointers to null terminated unicode strings in real memory.

For WM_DESTROY the window has already gone by the time the PocketC wndproc gets the message. The hwnd will be invalid.

For any message which is <b>sent</b> to a real wndproc you have to call the CEAPI set repost function to have it passed to the PocketC wndproc. Messages that are posted are always passed to the PocketC wndproc.



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


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 2 guests

cron