Hello, > Char* newLabel = "0"; > UInt16 aNumber; > StrIToA(newLabel, aNumber); //assume aNumber has been set to 500
What you are doing is incorrect. You are trying to write to a pointer that has a static text in it. Change that instead to: Char newLabel[maxStrIToALen]; UInt16 aNumber; ... StrIToA(newLabel, aNumber); //assume aNumber has been set to 500 That allocates memory to hold the string value to display. If you want to use the heap instead of stack, you would do something like: UInt16 aNumber; Char* newLabel = (Char*)MemPtrNew(maxStrIToALen * sizeof(Char)); ... StrIToA(newLabel, aNumber); //assume aNumber has been set to 500 ... MemPtrFree(newLabel); -- Roberto Machorro [EMAIL PROTECTED] http://machorro.net/roberto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
