一个对话框程序
void CLocationDlg::OnIntensity()
{……}
运行后出现错误:error C2601: 'OnIntensity' : local function definitions are illegal
到底怎么回事?我是个初学者,因为没人可以问,所以想找人指点一下。
void CLocationDlg::OnIntensity()
{……}
运行后出现错误:error C2601: 'OnIntensity' : local function definitions are illegal
到底怎么回事?我是个初学者,因为没人可以问,所以想找人指点一下。
class CLocationDlg : public CDialog
{
public:
public:
CLocationDlg(CWnd* pParent = NULL); // standard constructor// Dialog Data
//{{AFX_DATA(CLocationDlg)
enum { IDD = IDD_LOCATION_DIALOG };
CStatic m_playwnd;
//}}AFX_DATA // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLocationDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL// Implementation
protected:
HICON m_hIcon; // Generated message map functions
//{{AFX_MSG(CLocationDlg) afx_msg void OnIntensity();
afx_msg void OnThreshold();
void CLocationDlg::OnIntensity() 。