Why do you verify it? You assume, that something behind sizeof(ControlType) is the actual label store. You prevent further OS versions from growing the ControlType structure. But I can't see a reason for this check.

Henk

DeVon Fowler wrote:
I'm trying to change the text repeatedly for various
controls including pushButtonCtl and popupTriggerCtl. There were techniques for verifying that the text
returned from CtlGetLabel() was the initial default
value.
This now generates warning or error messages in Palm
OS5:
freeTxtP = (char *)ctlP + sizeof(ControlType);
oldTxtP = (char *)CtlGetLabel(ctlP);
CtlSetLabel(ctlP, txtP);
if(oldTxtP != freeTxtP)
...

--
-------------------------------------------------------------------------
[EMAIL PROTECTED]                                       www.metaviewsoft.de

<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
-------------------------------------------------------------------------


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

Reply via email to