I'm reading Palm OS Programming Bible. There is the following instructions:
================
CtlSetLabel( ctl, LstGetSelectionText( list, 1 ) );
CtlSetLabel( ctl, "This is a bad idea" );
================
In the book, it said that the 2nd item of 'list' will be overwritten by
"This is a bad idea".  However, to my understanding, the 1st instruction
will copy the pointer of 2nd item of 'list' to 'ctl'. Then the 2nd
instruction will copy the pointer (to"This is a bad idea") to 'ctl'. I don't
understand why the 2nd item of 'list' would be overwritten.

Please give some advice and tell me what's wrong with my concept.



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

Reply via email to