可以使用
#include <afxwin.h>

解决方案 »

  1.   

    只有这个#include <afxwin.h>好像不行 
      

  2.   


    可以!
    在建工程时选  an application that supports MFC 就可以了!
      

  3.   

    可以的,向导里选“an application that supports MFC”
      

  4.   

    #include <afxwin.h>
    #include <iostream.h>void main()
    {
    CString str("Hello,world");
    cout<<str<<endl;
    }
    在setting中c/c++ -> Code Generation -> Debug Multithreaded
    OK
      

  5.   

    当然可以了,在新建控制台程序的wizard中选择MFC支持就行了(An application support MFC)。
      

  6.   

    #include <afx.h>就包含了所有的MFC类啦。