Thanks Hal, for the quick response.
Here is my definition for the question record type structure:
typedef struct {
char* Question1Answer;
char* Question2Answer;
char* Question3Answer;
char* Question4Answer;
char* Question5Answer;
char* Question6Answer;
char* Question7Answer;
char* Question8Answer;
char* Question9Answer;
char* Question10Answer;
char* Question11Answer;
char* Question12Answer;
char* Question12Details;
char* Question13Answer;
char* Question13Details;
char* Question14Answer;
char* Question14Details;
char* Question15Details;
char* Question16Details;
UInt8 sessionFinished;
} questions_record_type;
I'm still not quite clear on how to fix this - I understand what you mean by
storing the actual text and not the pointers, but when I remove the "&"
character from the call to DmWrite, and then look later at the items stored
in the database, they all say "Invalid Pointer."
>From your message, I'd think I need to change
error=DmWrite(p, offset,&newData, sizeof(char*));
to
error=DmWrite(p, offset,newData, sizeof(newData));
but this gives me the invalid pointers.....am I still getting this confused?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/