Todd,
You mis-interpret what a card is, in this instance. The Dm calls refer to
RAM 'cards' - theoretically there can be more than one. In practise,
however, there is usually only one 'card' with the ID 0 (best not to
hard-code, however). To use databases on an expansion card, use the VFS
calls. There's a completely seperate library for these - most of which are
strikingly similar to the Dm routines with similar names. For example:
VFSFileDBGetRecord(FileRef ref, UInt16 recIndex, MemHandle *recHP, UInt8
*recAttrP, UInt32 *uniqueIDP);
VFSFileDBInfo (FileRef ref, Char *nameP, UInt16 *attributesP, UInt16
*versionP, UInt32 *crDateP, UInt32 *modDateP, UInt32 *bckUpDateP, UInt32
*modNumP, MemHandle *appInfoHP, MemHandle *sortInfoHP, UInt32 *typeP, UInt32
*creatorP, UInt16 *numRecordsP);
&c.
Transision will be short if you are simply using the expansion card for palm
database storage. Tip: store your application's files in
/Palm/Programs/<APPNAME>, or, as some would wish (wink to the TapWave folks)
/PALM/Programs/<prcdatabasename>-<creatorid>
Enjoy!
- Matthew Bevan
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/