Now, with the ability to use Memory Cards and locate programs on
different cards, it's time (should have been done sooner) to address
the issue of memory cards. But first I have some simple questions:
1) I currently use:
APCalDB = DmOpenDatabaseByTypeCreator(DBTYPE, CREATORID,
dmModeReadWrite);
But this does not use the card number. Do I have to use
DmOpenDatabase now instead of DmOpenDatabaseByTypeCreator, if I plan
to allow my database to exist on various card positions?
2) What is the best (preferred) way of managing (open, creating, etc)
databses using memory cards? I mean, currently, I simply open the
database at the beginning of the program and close it at the end. I
use the DmOpenRef for all other database commands once the program is
running. Is that safe?
3) Now that the database can reside on any card, what is the best
method of finding the database?
4) Does any of this apply to other things like the preferences, etc?
5) Does (or should) the database reside in the same card as the
application?
6) I have libraries that I install. I don't see any selection for
which Memory card the are created and loaded from. Can libraries be
installed or created on cards? How does one specify the card, if
that is possible? I am currently using the following to open my
libraries:
error = SysLibFind(MyLibName, &MyLibRef);
7) Does the issue of using databases on cards and having to specify
the cards apply to the preferences database? I don't see a way to
specify that.
8) Is there a URL that points me to solutions to these problems?
Thanks,
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/