This is a snipet of code I wrote that launched an app for a file based on
the extention. s is a string with the extention.
error = ExgGetDefaultApplication(&creatorID, exgRegExtensionID, s);
if (error == errNone) {
MemSet(&dmSearch, sizeof(DmSearchStateType), 0);
error = DmGetNextDatabaseByTypeCreator(true, &dmSearch, 'appl',
creatorID, true, &cardNo, &dbID);
if (error == errNone) {
SysUIAppSwitch(cardNo, dbID,
sysAppLaunchCmdNormalLaunch, NULL);
// does this return? if so a appCloseEvent is next
}
}
not sure if it returns, no code after that anyway for me :)
SysUIAppSwitch is really straight forward. See the entry in the Palm OS API
Reference
Nathan
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:bounce-palm-
[EMAIL PROTECTED] Behalf Of Alvin See
Sent: Monday, June 21, 2004 2:46 AM
To: Palm Developer Forum
Subject: How do I programatically launch another application from
within my application?
How do I programatically launch another application from within my
application? i need some refrence code.
Thanks
_________________________________________________________________
Get 10mb of inbox space with MSN Hotmail Extra Storage
http://join.msn.com/?pgmarket=en-sg
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/