i send a notification with custom data,but i receive custom data is wrong,here
is the codes:
//send a notification
...
if (mydateP)
{
UInt16 u16_cardNo = 0;
LocalID localDdbID = 0;
if (SysCurAppDatabase (&u16_cardNo, &localDdbID) != errNone)
{
return;
}
if (localDdbID)
{
SysNotifyRegister (u16_cardNo, localDdbID,sysNotifySyncFinishEvent, NULL
,sysNotifyNormalPriority, mydateP);
}
}
//respond to notification
...
case sysAppLaunchCmdNotify:
SysNotifyParamType *sysNotifyParamPtr = (SysNotifyParamType*)cmdPBP;
if (sysNotifyParamPtr->notifyType == sysNotifySyncFinishEvent)
{
MyDataType *myDateP = (MyDataType *)sysNotifyParamPtr->userDataP;
//handle something according to myDateP.
...
}
break;
when i handle something, myDataP shows that it receives data is wrong.
i can't find out where is fault,please help,thanks in advance.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/