Brad,
Use the call DmFindDatabase to get the LocalID of any database in the palm
(including applications.)
I've used both SysUIAppSwitch and SysAppLaunch to do what you are looking
for.
Consider the SysUIAppSwitch method. The first app would SysUIAppSwitch to
the second. When the second is done, it would SysUIAppSwitch back to the
first, presumable as part of its shutdown/cleanup routine. The problem here
is that when the first app appears again, it would likely bring up the main
form of the application, which may not be what you want since the original
app switch probably occurred in another form. You can solve this by having
the first app "remember" (via SystemPrefs) which of its forms was last
activated -or- by having the first app respond to launch parameters.
SysAppLaunch method. In this case, the first app would SysAppLaunch the
second. Because the first app never really "goes way", you don't have the
form problem mentioned above. Unfortunately, the second application will
*not* have access to global variables. Because of this, it would make if
difficult to support an existing application (most apps use globals) without
a lot of code changes and, therefore, headaches.
George
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brad
Myers
Sent: Thursday, October 19, 2000 2:16 PM
To: Palm Developer Forum
Cc: [EMAIL PROTECTED]
Subject: SysUIAppSwitch
I want to launch a different application from my application, and have
the other application run normally (with its whole regular user
interface), and then go back to my application when the other one quits.
If necessary, I can edit the other application to make this work. Should
I use SysUIAppSwitch or SysAppLaunch? What parameters should I pass? How
do I get the LocalID of the other application? Is there any example code
of doing this? The documentation is not clear.
Thanks,
Brad Myers
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/