JAMES S HAINES wrote:

I'm getting errors when I try to declare the following structure. Any variable that I declare as ptType is unrecognized by the compiler and debugger. I've included <PalmOS.h> as required. Signed integers (ie Int16, Int32, etc) are also unrecognized. Another curious thing happens when I add <PalmTypes.h>. It recognizes the signed integers but not the structure even though the inclusion of PalmOS.h should do it. Anyone have similar problems? The include directories are done correctly as far as I know.


struct ptType {
    UInt16 ptNum;
    char desc[30];
    double northing;
    double easting;
} ptType;

ptType point; (won't recognize this)
Since you haven't 'typedefed' ptType, I guess you should add the 'struct' keyword. Try this:

   struct ptType point;

   Luciano


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

Reply via email to