> My app sets the text associated with a label using CtlSetLabel().  It
works
> fine on OS < 4.0.  However, on 4.0 I get the following error message from
> the emulator: "...Control.c Line 543, Not a control object."

What sort of object are you passing in to CtlSetLabel?  If you're like the
normal case that this message is designed to help, then you're probably
trying to change the text of a label object.  A label object isn't a
control.  Use FrmCopyLabel.

CtlSetLabel used to work but that was only by luck; the routine didn't use
to check its object type and the structs happened to be similar enough in
this respect.  But that isn't guaranteed to be the case in the future.

-David Fedor
Palm Developer Support

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