Am Fre, 2002-12-27 um 17.52 schrieb DT:

Hi,

> SysNotifyRegister(0, appFileCreator, sysNotifyLateWakeupEvent, NULL,
> sysNotifyNormalPriority, NULL);
> 
> Anyone know what I am missing?

SysNotifyRegister takes the following values as the first two
parameters:

1. card number of the app (you assume a 0 which is usually correct,
   but it could be something else in some cases!)
2. the database ID which is NOT your creator ID

Use SysCurrAppDatabase to get the card number and database ID of your
application and call SysNotifyRegister like this:

        UInt16 cardNo;
        LocalID dbID;
        Err err;
        
        SysCurAppDatabase(&cardNo, &dbID);
        err = SysNotifyRegister(cardNo, dbID, sysNotifyLateWakeupEvent, 0, 
sysNotifyNormalPriority, 0);

Read the PalmOS API documentation, available at http://www.palmos.com,
for more details.
-- 
Daniel Seifert <[EMAIL PROTECTED]>


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

Reply via email to