On Monday 22 September 2003 04:03 pm, Eric Blanpied wrote:
> if(cmdPBP->notify->notifyType == sysNotifyTimeChangeEvent) {
>
> When I try and use this in codewarrior I get an error saying that it's not
> a struct/union/whatvever. Do I need to cast it? What type would I be
> casting it to? Or perhaps I need to declare the struct?
SysNotifyParamType *snpt;
snpt = (SysNotifyParamType *)cmdPBP;
if (snpt->notifyType == ......
Or I suppose you could typecast it:
if (((SysNotifyParamType *)cmdPBP)->notifyType == .....
--
/* Chris Faherty <[EMAIL PROTECTED]> */
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/