无法打开源文件"afxwin.h"/"afxext.h"/"afxdisp.h"/"afxdtctl.h"/"afxcmn.h"/afxdisp.h等 [英] cannot open source file "afxwin.h"/"afxext.h"/"afxdisp.h"/"afxdtctl.h"/"afxcmn.h"/afxdisp.h etc
问题描述
我尝试在安装了多类型MFC库的Visual Studio 2015 MFC上运行以前编写的MFC c ++代码.
I try to ran a previous written MFC c++ code on my visual studio 2015 MFC with multitype MFC library installed.
但是,关于功能缺失,我仍然有12个错误:
However, I still have 12 errors here regarding missing function:
IntelliSense: cannot open source file "afxwin.h"
C1083 Cannot open include file: 'afxwin.h': No such file or directory
cannot open source file "afxext.h"/"afxdisp.h"/"afxdtctl.h"/"afxcmn.h"/afxdisp.h etc....
IntelliSense: cannot open source file "afxwin.h"
C1083 Cannot open include file: 'afxwin.h': No such file or directory
cannot open source file "afxext.h"/"afxdisp.h"/"afxdtctl.h"/"afxcmn.h"/afxdisp.h etc....
在哪里可以得到这些头文件?
Where can I get these head files?
同样,我的设置是:
VISUAL Studio 2015 Ultimate MFC 已安装多字节MFC库 Windows 8-64位计算机
VIsual studio 2015 ultimate MFC Multibyte MFC library installed Windows 8 - 64 bit machine
谢谢!
推荐答案
我刚刚解决了一个类似的问题.这是解决问题的方法.
I just fixed a similar problem. Here's how you can resolve this.
- 转到控制面板
- 导航以卸载/更改程序.
- 向下滚动,直到看到Visual Studio安装
- 点击更改
- 弹出窗口后,点击修改"
- 在编程语言下-> Visual C ++ 确保选中"Microsoft Foundation Classes for C ++".如果未选中,请单击更新.
- Go to your control panel
- Navigate to uninstall/change a program.
- Scroll down until you see your visual studio installation
- Click change
- Once the window pops up, click "Modify"
- Under Programming Languages -> Visual C++ Make sure "Microsoft Foundation Classes for C++" is checked. If it isn't select it and click update.
这篇关于无法打开源文件"afxwin.h"/"afxext.h"/"afxdisp.h"/"afxdtctl.h"/"afxcmn.h"/afxdisp.h等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!