Hello all,
I was wondering if it was possible to set strings as features.
ie:
char* pData = "hello world";
FtrSet(MY_APP_CREATOR, 5, (UInt32) pData);
then, in a different part of the application:
UInt32 iBuff;
char* pString;
FtrGet(MY_APP_CREATOR, 5, &iBuff);
pString = (char*)iBuff;
Would this work? My first thoughts tell me that pData has to be declared as
static, but i'm not really sure. I've tried a few variants of this code, but
i cant seem to get it right. Can anyone shed some light on this? How would
some of the more experienced Palm OS programmers store strings as features?
Thanks!
-Michael
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/