> I have been trying to store a character string into
> the database w/ no avail.
...
> typedef struct{
>       char* str;
> }report;
...
> report newReport;
...
>       DmWrite(reportdbptr, 0, &newReport,
> sizeof(newReport));

You are trying to write a pointer to the database. 
What good will that pointer be when you exit your app
and return to it?  (no good at all)

What you need to do is to write the string of chars to
the database.  For example,

DmStrCopy (reportdbptr, 0, newReport.str);
-or-
DmWrite(reportdbprt, 0, newReport.str,
StrLen(newReport.str));


__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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