A damn answer (That is unless I misunderstand what you are confused about)
The way the Palm DB works (or any file system for that matter) is you don't
save variables directly to your DB, only a copy of the data.
i.e.  when saving data you use DmNewRecord or DmResizeRecord, you don't
place the memory allocated by MemPtrNew or MemHandleNew into the database.
so it doesn't matter if your variable is a Char*, int, double, etc, you
copy -not move- the data to your DB. When your app terminates, memory
allocated by using the Mem functions will no longer be valid, however memory
allocated with the Dm functions are now part of your DB.

----- Original Message -----
From: "Gert Wurzer" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 11:16 AM
Subject: problem with Char* ->database


> I just got a damn problem and hope that anyone here can help me:
> My App generates and uses a number of objects stored in a database.
> All changes the app makes to these objects are saved to the database.
> Now I have troubles because one member of such an object is a string.
> During runtime I create my objects in dynamic RAM and save all changes
> to the database, but how can I save this whole string when I use a
reference
> to it (Char*). A Handle to the string won't help me after closing the app
> and
> restarting? Or is that wrong? Or am I just confused right now and
> there is a simple solution?
>
> Any help will be greatly appreciated!!!
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>


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