> Hi all,
>
> I am writing a conduit to synchronize my Address book and I need some
> means
> to distinguish the records that I am writing into the AddressDB from the
> records that are already there before the sync. So I am reading the
> AppInfo
> block by calling the API SyncReadDBAppInfoBlock into my own structure and
> copy all the data into it. After this is done, I look for any empty
> strings
> in the list of Category strings(there are 15 of them) . If I find an empty
> Category string, I change it to my desired Category string value and then
> write back the structure using SyncWriteDBAppInfoBlock.
>
> Everything works perfectly fine. All I want to know is, is this a safe
> operation? Does this damage any other DB structure at all?
>
> FYI, my internal structure looks like this. The szCategLabels are where
> the
> Category strings are stored.
>
> struct addrAppInfoStruct {
> WORD nRenamedCateg;
> char szCategLabels[16][16];
> BYTE nCategId[16];
> BYTE nReserved1;
> WORD nReserved2;
> DWORD nFlags;
> char szLabel[22][16];
> WORD nCountryType;
> BYTE nSortFlag;
> BYTE nFiller;
> } addrAppInfoBlk;
>
Another thing I am concerned about is machine-dependency when I am copying a
WORD. Is it possible that I might be swapping the high and the low order
bytes when I copy to a WORD from the Palm DB into an Intel machine?
Any help is greatly appreciated.
> Kavitha
> --------------------------------------------------------------------------
> --
> ------------
> Kavitha Tumkur
> Noblestar Systems
> Mobile Computing Practice
> [EMAIL PROTECTED]
> 703-464-4000, Ext-3020
>
>