try this:

  Err launch_launch_app(UInt32 creator, UInt32 type)
  {
   UInt16    cardNo;
   LocalID    dbID;
   DmSearchStateType searchState;
   Err     err;

   err = DmGetNextDatabaseByTypeCreator(true, &searchState, type,
    creator, true, &cardNo, &dbID);
   if (dbID)
   {
    err = SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdNormalLaunch, NULL);
   }
   return err;
  }

  in your app you call it like this

  launch_launch_app(sysFileTApplication, sysFileCDatebook);

  hope this helps.

  regards

  danny
  www.toysoft.ca



  ----- Original Message -----
  From: "Karl R. B. Jones" <[EMAIL PROTECTED]>
  Newsgroups: palm-dev-forum
  To: "Palm Developer Forum" <[EMAIL PROTECTED]>
  Sent: Thursday, January 08, 2004 11:40 AM
  Subject: Launching Calendar from my app


  > Hello,
  >
  > Could someone tell me how to launch the claendar app from my app.
  > I have found info on launching apps but cannot find a name for the
calendar
  > program that makes it work.
  >
  > Thanks!
  > Karl
  >
  >
  >
  > --
  > 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/

Reply via email to