• vs mfc出现错误“MSB8301”解决办法


    error MSB8031: Building an MFC project for a non-Unicode character set is deprecated。. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.
    上面是出错的代码,肯氏两个原因:
    一是缺少安装mfc的组件,二是工程设置问题(字符集问题)

    方案一:

    原来的代码是VS2010编译的,现升级为VS2013后出现VS2013error MSB8031: Building an MFC project for a non-Unicode character set is deprecated。. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.

     根据提示进到相应的网址,下载所需文件安装即可:
    

    方案二:

    MFC 生成解决方案时报错:

    错误 1 error MSB8031: Building an MFC project for a non-Unicode character set is deprecated.
    You must change the project property to Unicode or download an additional library.
    See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.

    看上面 报错的信息 ,貌似要下载一个 字符编码器什么的,并在后面给出了 下载网址。 网上查后 解释说是

    用于多字节字符编码 (MBCS) 的 MFC 库 (DLL) 不再包含于 Visual Studio 中,但是可用作插件,您可以在任何装有 Visual Studio Professional、Visual Studio Premium 或 Visual Studio Ultimate 的计算机上下载和安装。(在 Visual Studio 中,必须启用 MFC。)安装需要大约 440 MB 磁盘空间,包括英语(美国)和 DLL 的本地化版本。
      在安装 MBCS DLL 后,如果卸载或修复 Visual Studio,则还会卸载或修复。 但是,如果只禁用 MFC,MBCS DLL 仍会保留在系统上。 如果仅卸载或修复 MBCS DLL,将不会修改 Visual Studio。
    知道了怎么回事 就好解决了,通过给出的 后面的网址,就可以在那个网站里下载 对应版本的插件,下载后双击点开安装,安装完毕即可

    如果是自己之前的工程没问题的话,直接打开工程的属性,吧字符集设置为一下即可。

    可是这样子简单设置还是有个问题,就是工程文件大的时候,要写有些c的类型,他会不支持而报错,所以还是要下载个组件,不然就只能使用2015版本的,就支持多字节字符集。
    下面是组件的下载办法:
    打开出错的给你的网址:

    点击“MFC MBCS DLL Add-on”

    点击“Multibyte MFC Library for Visual Studio 2013”进去之后选择Chinese啥的那个选项就可以看到我下面的图片了,然后点击下载就可以。

    下载之后的文件

    点击安装即可。

    附赠网盘资源:链接:https://pan.baidu.com/s/1O_i2ZSUhi49vzjBPEPiqww
    提取码:vzxy

    一键三连呀!
  • 相关阅读:
    Linux之间常用共享服务NFS
    linux共享服务Samba配置(Windows使用\访问)
    man alias
    seq awk tree 查看内核 分区 setup diff
    linux之sed用法
    linux下find(文件查找)命令的用法总结
    grep常见用法
    NTP服务及时间同步(CentOS6.x)
    我的pytest系列 -- pytest+allure+jenkins项目实践记录(1)
    软件生命周期&测试流程
  • 原文地址:https://www.cnblogs.com/jee-cai/p/14095340.html
Copyright © 2020-2023  润新知