在一个SDI,MDI或者对话框程序中 怎么增加窗口都不是Cwnd类即进入新创建的窗口代码界面都是这样的TestDlg::TestDlg(CWnd* pParent /*=NULL*/)
: CDialog(TestDlg::IDD, pParent)但是我记得过去都是这样的CTestDlg::CTestDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTestDlg::IDD, pParent)为什么窗口不能生成类了呢?郁闷

解决方案 »

  1.   

    有点区别例如进行 窗口 create等操作的时候报错,提示不是不是类/结构/。。等等警告是不是那里设置错了?我记得过去增加的窗口都是C开头的,包括我以前写的,怎么现在都这样了,郁闷了一下午
      

  2.   

    系统自动屏蔽大写C的可能没看明白我的意思,虽然还是类的含义,但是在进行 TestDlg m_dlgChild; 类似的映射时提示错误
    d:\te。.h(20) : error C2146: syntax error : missing ';' before identifier 'm_dlgChild'
    d:\test softproduct\59_s1\59_s1view.h(20) : error C2501: 'TestDlg' : missing storage-class or type specifiers
    等等