Matthew,
ok you are right when you say that.. but i'm not new to c/c++ i'm new to
palm-os programming.
However thanks for your help.

-----Messaggio originale-----
Da: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] conto di Matthew
Henry
Inviato: marted� 14 ottobre 2003 20.40
A: Palm Developer Forum
Oggetto: Re: DmDatabaseInfo. How to use it?


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/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to