I seem to have a major problem with my visual c++.
I have a class which contains several functions. For arguments sake lets use this simple class:
class testClass
{
// Construction
public:
testClass(){}
~testClass(){}
// Some Functions
public:
int GetData() { return m_Data; }
void DoStuff(); // Does some stuff
// Some data
protected:
int m_Data;
};
The problem is strange. I take the class (not this one, a much more complicated one) and go to use it.... include its header, yada yada yada.... do something like this:
testClass aTester;
aTester.DoStuff();
perfectly leagal right? OF COURSE IT IS! Well my compiler doesn''t like it! It gives me this error:
error C2228: left of ''.Resize'' must have class/struct/union type
where in my example Resize would be the DoStuff function.
Ok so if thats not weird, copy paste the class into a different project, AND IT WORKS!! So i figure, hey maybe my project file is messed up. I back up the headers and source files. I delete the project folder, recreate and readd the files... SAME ERROR!!
waht the heck is going on!!?!?!
- SniperBoB