Hello. I'm trying to run an MFC apps. GA Timetable. So I run into this two error.
c:\users\zahrina\documents\visual studio 2012\projects\gaschedule\gaschedule\gascheduleview.h(19): error C2146: syntax error : missing ';' before identifier '_sect'
c:\users\zahrina\documents\visual studio 2012\projects\gaschedule\gaschedule\gascheduleview.h(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
The coding is as below
class Schedule;
enum AlgorithmState;
#pragma once
#include <afxwin.h>
#include <windows.h>
class CGaScheduleView : public CWnd
{
public:
CGaScheduleView();
virtual ~CGaScheduleView();
private:
CCriticalSection _sect;
Schedule* _schedule;
bool _running;
public:
void SetSchedule(const Schedule* schedule);
void SetNewState(AlgorithmState state);
private:
void ComputeScrollBars();
void Scroll(int scrollBar, int nSBCode, int nPos);