Home  >  Q&A  >  body text

在c++项目文件中找不到afxwin.h这个头文件怎么做?

用的VS2013版.程序提示错误为“未定义标识符”,发现没有afxwin.h这个源文件,尝试着将MFC改成动态库,也没成功,想要在重新创建个MFC.dll,但是发现在新建中没有MFC这一项,求教!

黄舟黄舟2766 days ago1846

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 14:32:49

    1. It may be a problem with the Visual studio version. Are you using the professional version (pro)? Someone said on stackoverflow, afxwin.h is MFC and MFC is not included in the free version of VC++ (Express Edition). I don’t know if VS2013express is like this. I use VS2015. . .
    2. Try searching for afxwin.h

    in the vs installation directory. If this file exists, then include this include folder into VS's includeIn settings, you can search online to find out how to include it

    reply
    0
  • Cancelreply