LocalID dbIDP;
UInt16 cardNoP;
.....
case sysAppLaunchCmdSyncNotify :
{
SysCurAppDatabase (&cardNoP, &dbIDP);
SysNotifyRegister(cardNoP, dbIDP,
sysNotifyAppQuittingEvent, NULL, sysNotifyNormalPriority, NULL);
}
break;
case sysAppLaunchCmdNormalLaunch:
{
SysCurAppDatabase (&cardNoP, &dbIDP);
SysNotifyRegister(cardNoP, dbIDP,
sysNotifyAppQuittingEvent, NULL, sysNotifyNormalPriority, NULL);
}
break;
case sysAppLaunchCmdSystemReset:
{
SysCurAppDatabase (&cardNoP, &dbIDP);
SysNotifyRegister(cardNoP, dbIDP,
sysNotifyAppQuittingEvent, NULL, sysNotifyNormalPriority, NULL);
}
....
try to add this to ur code .. the above cases are covering pretty much the
register part ... except from the hard reset part in wich case ur app will be
gone anyway
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/