   enum Type problem
  I have a class like this:class _RockExport IGameEvent{public:virtual ~IGameEvent() {}IGameEvent::EventType mType;Ogre::String mName;enum EventType{EVT_KEY,EVT_GAME,EVT_ANIMATION,EVT_AUDIO};}and I'm getting these errors:c:\theRock\bumblebee\Source\include\IGameManager.h(18) : error C2146: syntax error : missing ';' before identifier 'mType'c:\theRock\bumblebee\Source\include\IGameManager.h(18) : error C2501: 'theRock::IGameEvent::EventType' : missing storage-class or type specifiersc:\theRock\bumblebee\Source\include\IGameManager.h(18) : error C2501: 'theRock::IGameEvent::mType' : missing storage-class or type specifiersWhat am I doing wrong here??   
  You need to declare the variable mType -after- the enum definition, since when the compiler hits "mType" it has not yet encounted an 'EventType' and thus does not know what it is :)As a general rule, always declare your types first, and then use them :)   