error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' afxwin.h
问题 I'm trying to make class responsible for putting some text on grey bg: Score.h #pragma once class Score { public: Score(); ~Score(); void UpdateScore(int points); void UpdateLives(int lives); int GetScore(){ return m_iScore; } int GetLives(){ return m_iLives; } void GetScoreText();//CString void GetLivesText(); CRect GetArea(){ return m_Area; } void SetArea(int MaxWidth, int MaxHeight, int Width); void DrawScore(CDC* pDC); CPoint GetText1Area(){ return m_ptText1; } CPoint GetText2Area(){