> Hi, I try to create a variable of CharPtr but I get an error when I put in > one of my function. It says it is an undeclared identifier... for example > this is what I'm doing: > > CharPtr test; > test = FrmGetGadgetData(frmP, FrmGetObjectIndex(frmP, MainTitleGadget)); > > why is CharPtr undeclared? Is there any includes I must put in order to use > it? Thank you once again,
typedef Char * CharPtr; many old (pre OS3.5) examples used this notation (CharPtr). there were some changes to the data types - there is a compatibility header file you can include to get these. you can rewrite your code as: Char *test; test = ... that, personally is much better code (religious war coming), and i tend to stay well away from the xxxxPtr typedefs - seeing a '*' tells me it is a pointer :) not seeing it makes me think otherwise. --- Aaron Ardiri [EMAIL PROTECTED] http://www.mobilewizardry.com/members/aaron_ardiri.php [profile] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
