You store your char** in the handle using MemHandleLock
Each time you need to read/write access the data you use
MemHandleLock/Unlock.

Create a new handle :
MemHandle myH = MemHandleNew(...);
myAppPrefs.it = myH;

Then you want to write your char** :
char **myCharPP = MemHandleLock(myAppPrefs.it);
myCharPP = ...; // or whatever you want
MemHandleUnlock(myAppPrefs.it);

If you want to read it :
char **myCharPP = MemHandleLock(myAppPrefs.it);
char **readPP = myCharPP; // or whatever you want
MemHandleUnlock(myAppPrefs.it);


----- Original Message ----- 
From: "Pit" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 1:04 PM
Subject: Re: Problem with MemHandleResize - memErrChunkLocked


> OK, but what is really obscour to me is, how can i save my char** into
this
> handle!
> Is there an example available, how explains this to an palm-newbie?
> Best Regards
> Peter
>
> "Chris Apers" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> > in your typedef, instead of :
> >
> > MyPtr it;    // where MyPtr is the actual type you are using
> >
> > use
> >
> > MemHandle it;
> >
> > ----- Original Message ----- 
> > From: "Pit" <[EMAIL PROTECTED]>
> > Newsgroups: palm-dev-forum
> > To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 20, 2004 12:45 PM
> > Subject: Re: Problem with MemHandleResize - memErrChunkLocked
> >
> >
> > > Ok, that is a good explanation.
> > > But how do i actually make my myAppPrefs.it handle?
> > > Sorry for my ignorance.
> > >
> > >
> > >
> > > -- 
> > > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palmos.com/dev/support/forums/
> > >
> >
>
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>

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

Reply via email to