MFC编译出错
void Drawpic::drawpic(int a, int b, int c, int d ,int e)出错:
error C2511: 'drawpic' : overloaded member function 'void (int,int,int,int,int)' not found in 'Drawpic'
函数如下:
class Drawpic : public CDialog
{
// Construction
public:
int than90;
int between80to90;
int between70to80;
int between60to70;
int less60;
Drawpic(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(Drawpic)
enum { IDD = IDD_DIALOG2 };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(Drawpic)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(Drawpic)
afx_msg void OnCancel();
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void drawpic();
};
[ 本帖最后由 sky_3210 于 2010-5-14 19:25 编辑 ]