报错信息:
F:\Codes\Test2\Test2.cpp(44) : error C2065: 'AfxEnableControlContainer' : undeclared identifier

解决方案 »

  1.   

    代码就是创建了一个最简单的对话框,啥代码都没加创建完了直接编译,结果就报错了搞不明白了
    最好别建议重装VC,VC里装了好几个第三方插件,装起来太耗时了。。
      

  2.   

    #include Afxdisp.h
    在Stdafx.h中
    #include <afxwin.h>         // MFC core and standard components
    #include <afxext.h>         // MFC extensions
    #include <afxdisp.h>        // MFC Automation classes
    #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
    #ifndef _AFX_NO_AFXCMN_SUPPORT
    #include <afxcmn.h> // MFC support for Windows Common Controls
    #endif // _AFX_NO_AFXCMN_SUPPORT
      

  3.   

    zeming_gu的回答我试过,有用!