M Qaisieh,

>I am looking for a way to create a folder in the internal memory for T5 or 
>LifeDrive 

If by "internal memory" you mean the portion of memory used for the storage heap
for traditional databases and applications, then you can't do that.  There is no
support for folders by the Data Manager apis used with the storage heap area.

If by "internal memory" you mean the additional memory which appears as a VFS
volume, then you simply use the normal VFS calls after enumerating the slots and
obtaining a reference to the internal drive. 

Same way you would if placing it on a SD card or memory stick.

>to place the pdb and read it from there .

Files on an extternal memory card or the internal volume must be accessed via
the VFS api set, not the Data Manager api set.  So you can't use the same
Dm...() calls to read the database.  If you only need read (and not update)
support, you can use VFSFileDBGetRecord() to obtain the contents of a given
record.  Performance will not be as good as with databases in the DBCache area.

Doug

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to