Yes but DmDatabaseInfo() doesn't copy a pointer to the name, it copies the
name itself.
And even if it *did* copy the pointer to the name...
char nameP;
DmDatabaseInfo (0,
> instdb[i],&nameP,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
..is not how you would do it.
You need to do something like this
char databaseName[32];
DmDatabaseInfo(cardNo, dbID, databaseName, &attributes, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
It always amazes me when someone decides to use the Palm OS as their first
foray into C/C++ programming. If the first time I coded in C++ was on the
Palm, I would have quickly given it up in digust and gone back to QBasic.
;-)
No slam intended, but spend a few months getting very familiar with C or C++
before you tackle Palm OS. You will make your life a *lot* easier.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/