;
> >>CharPtr newTrackName = 0;
> >>StrCopy(newTrackName, p->TrackName);
> >
> >You have to allocate the pointer before copying something in it.
> >
>
> I'm not sure how I'd do this. I thought I already had...

At the moment, new TrackName isn't pointing to anything, so you can't copy
anything to it. Try declaring newTrackName like so:
char newTrackName[];

newTrackName is still a pointer, but it's pointing to something now ( to the
start of an array of chars).
This may be the blind leading the blind, but I think I had a similar
problem.

Feel free to correct me anyone !





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

Reply via email to