wxGrid problem expected class name before '{'

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mikecoon
Experienced Solver
Experienced Solver
Posts: 68
Joined: Wed May 04, 2005 7:24 pm

wxGrid problem expected class name before '{'

Post by mikecoon »

here is my code

// dummy classes
class SCA_spreadsheet;

/
class SCA_spreadsheet_page : public wxPanel
{
private:
// any class wishing to process wxWindows events must use this macro
DECLARE_EVENT_TABLE()

public:

enum
{

};

// constructor
SCA_spreadsheet_page(wxNotebook *notebook);
// spreadsheet variable
SCA_spreadsheet *m_spreadsheet;
};




class SCA_spreadsheet : public wxGrid
{
private:
// any class wishing to process wxWindows events must use this macro
DECLARE_EVENT_TABLE()

public:


enum
{

};

//constructor
// constructor
SCA_spreadsheet(SCA_spreadsheet_page *page);


};

now i keep getting the error expected class name before '{' at the class SCA_spreadsheet : public wxGrid line.

i am not quite sure what is going on

mike coon
eco
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 203
Joined: Tue Aug 31, 2004 7:06 pm
Location: Behind a can of Mountain Dew
Contact:

Post by eco »

Are you forgetting to include <wx/grid.h> somewhere before that line?
mikecoon
Experienced Solver
Experienced Solver
Posts: 68
Joined: Wed May 04, 2005 7:24 pm

Post by mikecoon »

yes i did
thanks

mikecoon the dumbass
Post Reply