1.可能是Visual studio版本的问题,用的是专业版(pro)吗?在stackoverflow上有人说, afxwin.h is MFC and MFC is not included in the free version of VC++ (Express Edition).不知道VS2013express是不是这样的,我用的VS2015。。。 2.试试在vs安装目录下搜索afxwin.h 如果有这个文件,然后把这个include文件夹包含进VS的include设置里面,这个可以在网上搜索到怎么包含
1.可能是Visual studio版本的问题,用的是专业版(pro)吗?在stackoverflow上有人说,

afxwin.h is MFC and MFC is not included in the free version of VC++ (Express Edition).
不知道VS2013express是不是这样的,我用的VS2015。。。2.试试在vs安装目录下搜索afxwin.h
如果有这个文件,然后把这个
include
文件夹包含进VS的include
设置里面,这个可以在网上搜索到怎么包含