The following code does not succeed to modernize the attention manager and
to associate the event to my application, someone knows say where is the
error?

        Boolean updated;
        AttnFlagsType newFlags=kAttnFlagsSoundBit;
        UInt16 cardNoP;
        LocalID dbIDP;
        SysCurAppDatabase (&cardNoP,&dbIDP);
        // set newFlags appropriately
        updated = AttnUpdate(cardNoP, dbIDP, kAttnCommandDrawDetail, NULL,
            &newFlags, NULL, NULL);
        if (updated){
            // update succeeded
        } else {
                FrmAlert (UpdateSystemManagerAlert);
            // update failed - attention item may no longer exist
        } 


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

Reply via email to