In article <16200@palm-dev-forum>, Daniel Seifert wrote:
>If the global variables belong to B, yes, of course, because when
>you use sysAppLaunch, your program A is terminated and B is
>launched. Second, the HOME button does not mean "finish app and go
>to previous" but rather "finish app and go to the launcher".
This is incorrect - SysAppUISwitch works as you describe, but
SysAppLaunch does not terminate the running app and global variables are
not automatically allocated (I believe Michael Sokolov's version of GCC
will optionally let you use globals in this situation). SysAppLaunch
essentially lets you use another app as a function call - as soon as B's
PilotMain returns, execution will resume at A.
-Ben
--
Ben Darnell [EMAIL PROTECTED]
http://thoughtstream.org
Finger [EMAIL PROTECTED] for PGP/GPG key 1024D/1F06E509
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/