Okay, I'm trying to expand my Palm OS programming skills a bit now and have run 
into another hurdle.

I use the Garnet Hello World Template as a base. I then created a new file .cpp 
and a .h file to define a new class. But when I try and include the new .h in 
my main .c file I get an error.

The class is empty at this point, and the .h file contains only:

class SquareClass{
public:

        SquareClass();
        virtual ~SquareClass();
};

The compiler doesn't like "class". Is this because it thinks it is compiling 
for C instead of C++? Or is there some other problem going on? Is there some 
easy fix for this? Thanks.
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to