error MSB8031: Building an MFC project

来源:互联网 发布:进销存erp软件 编辑:程序博客网 时间:2024/05/16 19:11

1、下载Multibyte MFC Library for Visual Studio 2013

 下载地址:http://www.microsoft.com/zh-cn/download/details.aspx?id=40770

2、安装,双击后会弹出安装的,安装路径是你本来的vs路径


MFC遇到的问题顺便在这记一下

1、 error C2440: “static_cast”: 无法从“void (__thiscall CPppView::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”

解决方法:将返回类型改为LRESUL,在最后添加return ture;

0 0