On Wed, Apr 21, 2004 at 03:08:50PM +0100, Salli wrote: > I have several databases which I wish to open at the start of my > application. I don't want to limit my application to looking on card 0 as I > would like the databases to be able to be transferred to any card (they are > read only).
The first problem is that databases on memory cards (i.e., card 0) are not interchangable with databases on expansion cards. The former use Dm* functions, while the latter use VFS* functions. So if you plan to support expansion cards, your app needs a redesign now, while it's still early. > The problem I have is that if I want to open the db by name then I have to > supply the cardno. If I want to allow any card then I can open the dbs by > type and creator id, but it just keeps coming back with the first database > everytime I do the open command...how do I tell it to open the db by name > but not cardno? Given that there aren't really any palm devices that have more than one memory card, what you're doing is fine, because you'll never have to use anything besides card 0. However, for completeness, what you could have done is use a different type for each database, then DmOpenDatabaseByTypeCreator would work as you were hoping. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Cracker - My Life Is Totally Boring Without You (Gentleman's Blues) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
