"Sripriya N" <[EMAIL PROTECTED]> wrote in message
news:45380@palm-dev-forum...
>
> I have 2 separate Applications.I want to launch my second Application
from
> the first .
>
> I'am using the function
> Err SysUIAppSwitch (UInt16 cardNo, LocalID dbID,UInt16 cmd, MemPtr cmdPBP)
>
> The second parameter dbID is the ID of the new application's resource
> database.
> How will I get this dbID?
>
> Thanks/Regards,
> Sripriya.N
> [EMAIL PROTECTED]
>
>
>
>
> ---
>
> This server is using the evaluation version of the Newsgroups
> Interface, making messages limited to 1000 characters. This limitation
> can be removed by upgrading to MultiView.
> See http://www.lyris.com/ for upgrade information.
>
>
Try this function:
------------------------------------------------------------------
Boolean COM_application_switch (UInt32 COM_application_id_in)
{
UInt16 COM_application_card_local = 0;
LocalID COM_application_local = 0;
Err COM_error_local = 0;
Boolean COM_success_local = TRUE;
if (COM_success_local)
{
COM_success_local = COM_application_id_in != 0;
};
if (COM_success_local)
{
DmSearchStateType COM_search_local;
COM_success_local = (! (COM_error_local = DmGetNextDatabaseByTypeCreator
(TRUE, & COM_search_local, 0, COM_application_id_in, FALSE, &
COM_application_card_local, & COM_application_local)));
};
if (COM_success_local)
{
COM_success_local = (! (COM_error_local = SysUIAppSwitch
(COM_application_card_local, COM_application_local,
sysAppLaunchCmdNormalLaunch, NULL)));
};
return COM_success_local;
}
-------------------------------------------------------
Of course, it should only return if it fails ;-P
Regards,
Simon Bennett,
Senior technical analyst,
System Lynx Ltd/Total Control Systems (UK) Ltd/SafeTRACK.co.uk Ltd
E-mail: [EMAIL PROTECTED]
Tel: +44 01922 622044
Fax: +44 01922 621569
Net: www.totalsupportline.com (Support information, call logging
and progress for System Lynx Ltd, Total Control Systems (UK) Ltd and
SafeTRACK.co.uk Ltd)
www.safetrack.co.uk (SafeTRACK information and
access)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/