At 12:53 AM 7/6/2004, you wrote:
Hi ,
Is their any command in palm to do memcopy.

Yes, and it's called MemMove.

I need to copy complete structure (Moveable chunk) .
Here is the sample structure

typedef struct audio_setup
{
 MemHandle  hLangVersion;    //char*
 MemHandle  hAudioTestArray;   //struct audio_test *
 Int32    nCurrentAudioTestValue;
 MemHandle   hAudioChannelTrimPort;  //struct audio_channel_trimport*
 MemHandle  hPinkNoiseOrReferenceTone; //char*
 Int32   nCurrentAudioChannel;
 UInt16   nAudioTestArrayCount;
}AUDIO_SETUP;

Note: using a MemMove to copy this structure won't do a deep copy. You'll have two copies of the structure, but they will be pointing to the same MemHandles. You'll need to write your own routine to allocate and copy MemHandles to do a deep copy.


-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to