Donovan Parks wrote: >But, what I am hoping for is something like: > for(i = 0; i < 6; i++) > SCI_PrintByte(*(&gPacket+i)); // this does not work! -> is there >something that will? > >&gPacket should give me the address of the gPacket structure and the "*" >operator should then given me the value at that address. I receive a >compiler error indicating I am going an "illegal conversion". Anyone? > This is a 'classical' error of (starting?) C programmers (no offence!). '&gPacket' points indeed to the start of the packet, but &gPacket+1 points to the next packet! You must typecast you structure to a BYTE-array before adding i, something like: SCI_PrintByte(*((BYTE *)(&gPacket)) + i)); Don't know if this is supported by your compiler. I would define the whole packet as character-array and use: SCI_PrintByte(gPacket[i]); I'm surprised the compiler allows you to define a variable array size in the structure! Success. Rob. >Thanks. > >Regards, >Donovan Parks > >-- >http://www.piclist.com hint: The list server can filter out subtopics >(like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- Rob Hamerling, Vianen, NL phone +31-347-322822 homepage: http://www.robh.nl/ -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics