Mike,

static void( ?what's the type here? MyIRC, MyIrEvent *MyIrEvt)
{
}

or struct _MyIrEvent *MyIrEvt

and please switch on warnings for your compiler. To write a function 
header without declaring types for the arguments is a very bad style.

Mike wrote:

> typedef struct _MyIrEvent{
>       IrEvent IrEvt;
>       UInt16 test;
> } MyIrEvent;
> 
> MyIrEvent *MyIrEvt;  // I have also tried _MyIrEvent *MyIrEvt

that's a global variable, an uninitialised ptr to struct _MyIrEvent

> 
> static void DoIR(MyIRC, MyIrEvt) {

That's a function header without telling the compiler what the type of 
the arguments are, He will use int, I guess.

>       switch(MyIrEvt->IrEvt) {    // this won't compile

Now you try to use your int variable as a ptr to a struct.

>               case LEVENT_DATA_IND:
>                 break;
>         // more case stuff below
> }
> 
> The error is "pointer/array required."  I have tried casting the MyIrEvt
> within the switch statement back to the structure and it still gives the
> error.  ???

Henk

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