Hi,

I'm trying to create a Palm DB on the desktop.  I've read the docs etc and
am changing the byte order to account for the 'endian' differences of the
two platforms.  I've got #pragma pack(2) in my VC++ project to use 2 byte
packing as recommended by Rhodes & McKeehan.

Unfortunately when I try to copy the pdb I created to the Palm via the Palm
Desktop software, I get the following message from the HotSync log:

HotSync operation started 09/14/01 17:26:38
   - Invalid handheld file deleted: C:\Palm\BondyR\Install\oost1.pdb

I've followed the Palm Docs for the PDB Database Format, but had to guess at
a couple of things.  Can someome tell me if any of my assumptions below are
incorrect.  I'm sure I'm doing something wrong, I'm just hoping that someone
who has done this before can quickly spot something wrong below:

a) I left the creationDate, modificationDate and lastBackupDate as 0

b) I don't have an appInfo block, so I wrote out a 0 for the appInfoID.  I
understand that this is the offset from the beginning of the file to where
the appInfo block is. But if you don't have an appInfo block  ( and the
doc's indicate that the appInfo block is optional ), is there a 'magic
number' to use for the appInfoID in the header to indicate that the appInfo
block is not present.

c) ditto for the sort info block - don't have one and used 0 for the offset

d) The RecordListType (pg 20 of the PDB Database Format doc) has a field
'nextRecordListID'.  Again, this is an offset to the next REcordListType.  I
assumed a value of 0 to indicate that there is no other list - is this
correct?

Thanks for any and all help,

Ron



Ron Bondy
Citadel Software Inc.
[EMAIL PROTECTED]
www.citadelsoftware.ca
(403) 374-0133 (phone)
(403) 374-0134 (fax)


-- 
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