VS2012与VS2015同时安装用VS2012创建MFC程序时弹出编译错误”fatal error C1083: 无法打开包括文件:“mprapidef.h”: No such file or directory”的解决办法

在WIndows 7操作系统上同时安装VS2012与VS2015并用VS2012创建MFC程序时弹出编译错误”fatal error C1083: 无法打开包括文件:“mprapidef.h”: No such file or directory”的解决办法:

I installed vs2015 and vs2012, then the same problem occurs,however, I find a solution.

open visual studio project settings,click VC++ Directories, find Include Directories,add the following line to it.

C:\Program Files (x86)\Windows Kits\8.1\Include\shared

One may add the corresponding 8.1 paths to the environment variable. Maybe it's necessary to do the same thing with the lib environment variable (WindowsSDK_LibraryPath_x86).

上一篇:session过期时ajax请求刷新浏览器


下一篇:华东师范大学第十届ECNU Coder程序设计竞赛