Just wanted to say thanks for these replies, that
fixed that problem. I was wondering if it had
something to do with that Byte. I'm a Java Developer
and am learning this C/C++ stuff as I go. I was told
that one of the best ways to learn the Palm stuff was
to study source code. That's where I copied the code
excerpts with the Byte in them from. I still didn't
see Byte declared anyone in that code, but it was a
couple years old, and maybe it had something to do
with the IDE the guy used.
I have another stumper now, which I'll post in a new
thread. I think it's another C include issue I'm not
used to with Java.
--- Brian Preston <[EMAIL PROTECTED]> wrote:
> <SNIP>
> #include "scDataTypes.h" // Structure Definitions
>
> All that this scDataTypes.h file contains is this :
>
> typedef struct {
> Byte Terrain;
> Byte X;
> Byte Y;
> } TILE;
>
> and the errors :
>
> Error : ';' expected
> <SNIP>
Try
typedef struct {
UInt8 Terrain;
UInt8 X;
UInt8 Y;
} TILE;
Or, if you prefer
typedef struct {
unsigned char Terrain;
unsigned char X;
unsigned char Y;
} TILE;
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/