Expected ')' before '*' token

Posted by Danni on Stack Overflow See other posts from Stack Overflow or by Danni
Published on 2010-03-25T03:32:33Z Indexed on 2010/03/25 3:43 UTC
Read the original article Hit count: 368

Filed under:
|
|
|

So this is more of a syntax problem. I keep getting the error "Expected ')' before '*' token" on the line:

#include "CDocumentObserver.h"
#include "CViewPlayerDlg.h"

/*
 * Class:    CViewPlayer
 *
 */
class CViewPlayer : public wxWindow, public CDocumentObserver
{
public:
      CViewPlayer(CViewPlayerDlg *dlg);                //here

in CViewPLayer.h. The .cpp constructor looks like:

#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 it was that something was wrong in the constructor of the .cpp but I have no idea.

Dianna

© Stack Overflow or respective owner

Related posts about error

Related posts about include