"Sol" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi all,
>
> I was able to convert char array to CharPtr type in Code Warrior version
7.
> However when I move to Code Warrior version 8, I got error.  Here is the
> code :
>     CharPtr result;
>     Char     array[10];
>     UInt16  length;
>
>     --After processing...
>     array[length] = '\0';
>     StrCopy(result, array);
>
> It worked in CW 7.  But doesn't work in CW 8.  How do I solve this
> problem???

Where are you allocating the memory referenced by 'result'? A pointer needs
to point *to* something to be of use.

Jeremy Neal Kelly
Software Engineer
Peapod




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

Reply via email to