I borrowed the following code snipet, the GetObjectPtr function, and the
details form itself from the OS 3.5 datebook example:
ctl = GetObjectPtr (DetailsDateSelTrigger);
label = (Char *)CtlGetLabel (ctl); // OK to cast; we call CtlSetLabel
DateToDOWDMFormat (details->when.date.month, details->when.date.day,
details->when.date.year + firstYear, sysPrefs.dateFormat, label);
CtlSetLabel (ctl, label);
but I constantly get GARBAGE in the ctl pointer that is returned. Yet when
I run the complete datebook example project in debug it works fine.
Can anyone tell me why I can't get a valid pointer on this stupid control?
It's driving me nuts. I seem to always have problems with select triggers.
Thanks!
Stephen
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/