So this is more of a syntax issue. I keep getting the error "Expected") until "*" in the line:
#include "CDocumentObserver.h" #include "CViewPlayerDlg.h" class CViewPlayer : public wxWindow, public CDocumentObserver { public: CViewPlayer(CViewPlayerDlg *dlg);
in CViewPlayer.h. The .cpp constructor looks like this:
#include "CViewPlayer.h" #include "wx/prec.h" #include "CViewPlayerDlg.h" using namespace std; BEGIN_EVENT_TABLE(CViewPlayer, wxWindow) EVT_PAINT(CViewPlayer::OnPaint) END_EVENT_TABLE() CViewPlayer::CViewPlayer(CViewPlayerDlg *dlg) : wxWindow(dlg, wxID_ANY, wxDefaultPosition, wxSize(dlg->GetDocument()->GetSize()), wxBORDER_SUNKEN), CDocumentObserver(dlg->GetDocument()), mStartTime(0), mPlayTime(0), mPlaying(false) { SetBackgroundColour(wxColour(128, 128, 128)); SetClientSize(GetDocument()->GetSize()); }
What causes this error? I thought something was wrong in the .cpp constructor, but I have no idea.
source share