Thank You, that may solve quite a few of the problems I have been running
into. BTW, I picked up PalmPrint at PalmSource 2000, it works great.


"Steve" <[EMAIL PROTECTED]> wrote in message news:33560@palm-dev-forum...
>
> NOT ACCEPTABLE:
>
> CharPtr note;
>
> StrCat(note,"blah blah"); // Fails because memory is only allocated for
> one pointer, not for multiple bytes
>
> ACCEPTABLE:
>
> Char note[128];
>
> StrCat(note,"blah blah");
>
> PREFERABLE UNDER SOME CIRCUMSTANCES:
>
> CharPtr note;
>
> note=MemPtrNew(128L);
> StrCat(note,"blah blah");
> // and after finishing with note
> MemPtrFree(note);
>
>
> Steve Patt
> President, Stevens Creek Software
>   http://www.stevenscreek.com/palm
>   Best PQA ("ePQA"), PalmSource 99
>   Best Application ("PizzaScan"), Palm Developer's Conference 1998
>   First printing software for the Palm - September, 1997
>
>
>



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

Reply via email to