"McMicken, Steven" wrote: > Before using the pointer, you must allocate space for the string using > MemPtrNew (LengthOfStringPlusOne) or by setting the pointer equal to a > character array name, such as, > char str[5]; > CharPtr s = str;
Shouldn't you use "Char str[5]" instead? I'm still confused about how Palm handles characters, but I think that in some locales, a character is more than one byte. To be fully portable, I think you need to declare all strings as type "Char" and when allocating space use MemPtrNew((strlen+1)*sizeof(Char)) (or MemHandleNew). Note that all string manager functions expect type "Char" not "char". Cheers, --Scott -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
