我包含了afx.h后还不行,还需要包含哪些程序?

解决方案 »

  1.   

    原来是一个控制台程序,我想修改这个程序,在其中要使用CString和CFile类等,但现在编译的时候出现链接错误,
    unresolved external symbol "public: virtual unsigned int __thiscall CFile::Read(void *,unsigned int)" (?Read@CFile@@UAEIPAXI@Z)
      

  2.   

    在刚开始生成控制台程序的时候,在向导中选择MFC支持!
      

  3.   

    project->seting->c/c++
    in "Category" select "Code Generation"
    in "Uer run_time library" select a run-time libray of Multithreaded such as "Multithreaded DLL" or"Debug Multithreaded DLL"
      

  4.   

    #include <afxwin.h>
    看看
      

  5.   

    用_tmain(win32 console Application)支持MFC
    或STL的string
      

  6.   

    在生成console 程序时 可以选择支持mfc类库