I have this .h file.
#ifndef EXPLANATIONSCREEN_H
#define EXPLANATIONSCREEN_H
#include "Screen.h"
class ExplanationScreen : public Screen
{
public:
//(De)Constructors
ExplanationScreen();
ExplanationScreen(ExplanantionScreen & rhs);
~ExplanationScreen();
// Over-ridden operators
ExplanationScreen& ExplanationScreen::operator=(ExplanationScreen& rhs);
// Public member functions
HRESULT HandleMessage(UINT MessageType, WPARAM wparam, LPARAM lparam);
HRESULT Initialise();
void OutputScreenInformation();
HRESULT RenderScreen();
void NextScreen();
void StartScreen();
private:
HRESULT HandleMouseEvent(UINT MessageType, WPARAM wparam, LPARAM lparam);
HRESULT HandleGraphEvent(UINT MessageType, WPARAM wparam, LPARAM lparam);
HRESULT HandleInputEntity(string InputDescriptor);
};
#endif
I get the following error:
C:\Documents and Settings\Mark\StarChart\Testing\Screen Entity Inheritance Test\ExplanationScreen.h(11) : error C2629: unexpected 'class ExplanationScreen ('
C:\Documents and Settings\Mark\StarChart\Testing\Screen Entity Inheritance Test\ExplanationScreen.h(11) : error C2238: unexpected token(s) preceding ';'
on this line:
ExplanationScreen(ExplanantionScreen & rhs);
I can't see the problem, can you? I can post other related files if necessary, Thanks.
Mark Coleman