From: "hymanho" <[EMAIL PROTECTED]>
Subject: Problem when set the record info in Palm

> In my case I   insert a new record in Palm ToDo databse , but I hope the
HotSync manager will ignore this record when hotsync in processing. so I set
the record attribute dirty flag = 0 and use function DmSetRecordInfo() to
peform this, Unfortunately, it did not take palce. why?
>
> Word       curattr;
> int resetflag = 0xbf;
> DmOpenRef DbRef;
> DmRecordInfo (DbRef, 0, &curattr, NULL, NULL);
>       curattr = ( curattr & resetflag);
>       err = DmSetRecordInfo(DbRef,0,&curattr,NULL);

You might want to check the reference on DmSetRecordInfo.  Under 3.5, the
attr parameter is a UInt16 * (it was probably a Word * before that).  So int
resetflag = 0xbf won't work properly.  I believe you should use UInt16
resetflag = 0xffbf;



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

Reply via email to