OK here's a weird one, at least for me.

I have a structure:
 typedef struct
{
 ULong  ItemID;
 const char  *thing;
 const char  *secondthing;
 const char  *thirdthing;
 const char  *fourththing;
} Item;

I load and initialize my database using the above structure starting out
with the following initialization code:

Item c1 ={10010,"text","text1","text"2,"text3"};
Item c2
={010018,"differenttext","differenttext1","differenttext2","differenttext3"}
;

What happens is at Item c2 I get a "Error : illegal token" from Code
Warrior. If I remove the leading 0 from the 010018 variable it compiles
fine. I've also found out that if you use any number below 8, at the end,
such as 010017 and below, it also compiles find, but using 8 or 9 I get the
above mentioned error.
Any ideas why it falls apart with the leading 0 infront of the 8 or 9?

I've also tried swapping the ULong for SDWord and still no luck.

Thanks
Carl Smith



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to