> "Jim Duffy" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> >    profileP += Tally; // now pointing at beginning of UInt16 array.
> >    for(i = 0; i <= ProfileLength; i++)
> >    {
> >         MemMove(&ProfileGlobal[i],profileP,sizeof(UInt16));
> >         profileP += 2;
> >
> >    }

I think you can let the language help you out a bit more, here:

 UInt16* ra = (UInt16*) profileP;
 for (i = 0; i < ProfileLength /* not <= */; ++i)
        ProfileGlobal[i] = ra[i];

As Chris suggested, you'll want to make sure that the number of elements in
ProfileGlobal is the same as ProfileLength.


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

Reply via email to