From: "Anuradha J" <[EMAIL PROTECTED]>
> // get label on the button
> cLabel = CtlGetLabel(control);
>
> if(*cLabel == '\0') // this is were it gives problem
The docs say you must not use CtlGetLabel on a graphical control or a slider
control because they have no label (and therefore, I would guess that cLabel
is NULL). So you should check the control type before calling CtlGetLabel
(or, at least don't try to dereference cLabel if it is NULL!). I don't see
any API function to check a control's type, so you probably have to look to
see if control.ControlAttrType.graphical is set and not call CtlGetLabel if
it is. Note: the graphical attribute is only present if the 3.5 New Feature
Set is present.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/