VC6.0和VS2010转换时经常遇到的问题

这是最近总遇到的,等以后再遇到时慢慢添加进来

1、从1.1更新为2.1,编译“min”: 找不到标识符

解决方法:加上#include "minmax.h"

2、c:documents and settingsadministrator桌面liuyuliuyucdib.cpp(1054): error C2259: “CException” : 不能实例化抽象类 解决方法:应可以将出错的地方,换成“CMemoryException”

3、c:program filesmicrosoft visual studio                                          8vcatlmfcincludeafx.h(24): fatal error C1189: #error:Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version.Please #define _AFXDLL or do not use /MD[d] estMain.cpp 

解决方法:项目-〉属性-〉use   of   MFC   改成use   MFC   in   a   share   dll

原文地址:https://www.cnblogs.com/zCoderJoy/p/3425616.html