Hi all,
I wrote a little program that can insert holidays into the calendar. It is
possible to jump from my program directly to the calendar entry. That works
fine with the built in calendar, with Datebk3/4/5 and it used to work with
ActionNames. But when I try to use the sysAppLaunchCmdGoTo Agendus 6.01
produces a fatal error. Here is what I did:

if (dbID)
{
    DmCloseDatabase(DateBookDatei);
    p = MemPtrNew(sizeof(GoToParamsType));        // Kalender aufrufen

    p->searchStrLen = 0;
    p->dbCardNo = cardNo;
    p->dbID = dbID;
    p->recordNum = num;   // index of record
    p->matchPos = 0;
    p->matchFieldNum = 0;
    p->matchCustom = 0;

    if (dbID)
   {
      MemPtrSetOwner(p, 0);
      err = SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdGoTo, (MemPtr)p);
      ErrNonFatalDisplayIf(err, "Kalenderprogramm konnte nicht aufgerufen
werden");
   }
  return true;
 }

Any ideas what is going wrong there?

Thanks,
Nikolaus Hueck



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to