Marc A. Lepage wrote:
I was using DmFindDatabase to find the database by name on card 0.
This works for the databases I create at runtime on card 0. It also works for the database I install on card 0. But if that database is installed on an SD card, it isn't on card 0 therefore it isn't found.
What are my options for finding that database (by name) no matter which card number it resides on?
I tried changing the type of the database to something unique (given my creator) and using DmOpenDatabaseByTypeCreator... however it still isn't found when my app is in RAM and the database is on the SD card. I'm pretty sure I have everything set up correctly. Should this work, or is this approach incorrect?
DmOpenDatabaseByTypeCreator only works on RAM based databases. When the docs say "card number" they are not talking about expansion cards, but memory cards, of which there is only 'card 0' on most devices. For files located on your VFS card you'll want to browse through the files on your SD card using the VFS functions. There are some good examples in the docs of how to implement this. Bob.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
