Please excuse me if this has been asked and answered, I did search the various kbs before posting this without success.
I have requirement to read and write the resource records in a PRC. I have successfully managed to read the headers of the PRC file and to read the record list with what seems to be success. I am coming unstuck while trying the read the actual raw data that constitutes the contents of the resource records. For example I have read the record list and established the various tFRM,tAIN etc items in the PRC file. I then sequentially visit the offset of each resource in the PRC file by seeking to the defined offset and attempting to read the items according to layouts defined in UIResDefs.r, however when I read for example a tFRM resource as laid out by UIResDefs.r I seem to be getting junk, for example one of the referenced fields types contains a value of 1600, clearly incorrect for a resource type string.
The question is, does the raw resource data in the PRC conform to the layouts defined in UIResDefs.r, if not where does one find the on disk layout of these items ?
Thanks in advance
Vincent
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
