上篇文章中遇到的一个问题Wizard时会报错,后来查了资料解决:
class CToolsDlg : public CDialog
{
// Construction
public:
CDialog *pDialog[2]; //不会报错
CToolsDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CToolsDlg)
enum { IDD = IDD_TOOLS_DIALOG };
//CDialog *pDialog[2]; //此句放在此在Wizard时会报错
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CToolsDlg)
// Implementation
protected:
……
};