I am using VS2008 on Vista 32bit, and I have been using on this laptop for quite awhile some months now, well I haven't used classes in awhile and I am trying to get back in the swing of using them, but something is wrong, and I need to know if it is a setting in VS2008 or should I reinstall it.
My problem is I have a header file in an include folder called settings.h, in it is a class, just to be sure I wasn't doing something wrong I even used a completely basic tutorial class in this case CRectangle,
"include/Settings.h"
class CRectangle
{
public:
void set_values(int a, int b) { x = a; y = b; }
int area() { return (x*y); }
private:
int x, y;
};
"Main.cpp"
#include "include/settings.h"
int main(int argv, char* argc[])
{
CRectangle rect;
return 0;
}
Now my problem I get 3 errors from this,
1st: 'CRectangle' : undeclared identifier
2nd: syntax error : missing ';' before identifier 'rect'
3rd: 'rect' : undeclared identifier
Now this has to be a problem with my VS2008 Pro compiler, right? Or am I just having the biggest brain fart of all time, if it is VS2008 is there a setting to fix this or should I reinstall it, BTW I have Visual AssistX installed, but it is installed on both machines.
I have noticed another problem, even VAssistX isn't working properly, for instance on my main rig it will recognize any Box2D functions, variables, etc... and give me the drop down of choices within the scope of what I am typing, but on the laptop with the problems it doesn't recognize only Box2D stuff so I will not get the intellisense but only for Box2D stuff. This is obviously a VAssistX problem, but I am trying to avoid the long process of installing VS2008 all over again. Thank you in advance for any help.