hello,

i have a field with a trigger resource and a list attach to it (as u can see
i use CW6R and constructor). i want to set the label of the trigger to " tap
here to change".
i already have the trigger pointer (let's call it - trgP) and i have made
the copy by using
CtlSetLabel ( trgP, (CharPtr)myfieldHandle );

myfieldHandle it's one of my field which i create by MemHandleNew (with the
size i define) and after that i lock a poiter to it - (CharPtr)fldP =
(CharPtr)MemHandleLock (myfieldHandle).
then i make - StrCopy ( fldP, "tap here to change"); and finally i unlock
the fldP. (with MemPtrUnlock).

my application crashes when ever it gets to the line - CtlSetLabel ( trgP,
(CharPtr)myfieldHandle );


any suggestions??

tnx in advance :-)



-- 
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