Building MFC application with /MD[d] (CRT dll version)requires MFC shared dll version~~~~
转自:http://www.byywee.com/page/M0/S530/530822.html
昨天编译文件时出现了Building MFC application with /MD[d] (CRT dll version)requires MFC shared dll version~~~~的错误。
在网上很容易找到了解决的方案,公布如下:
对着你的项目点击右键,依次选择:属性、配置属性、常规,然后右边有个“项目默认值”,下面有个MFC的使用,选择“在共享 DLL 中使用 MFC”,就OK了~~~
确实如此,可是知其然却不知其所以然,于是我把MFC的DLL相关内容学习了一下,小结如下:
使用VS2008,在项目属性中有一项MFC的使用,有三种设置:
1.使用标准Windows库
2.在共享DLL中使用MFC
3.在静态库中使用MFC
第一种顾名思义。第二种指的是打包时一些MFC的DLL的内容没有被包含在EXE文件中,所以EXE文件较小,但是运行时要求系统中要有相关的DLL文件。第三种是将DLL中的相关代码写进EXE文件中,文件较大,但是可以在没有相关DLL的机器上运行。
同时,如果程序本来是第二种方式,发给同事,在同事机器上运行时,可能会出现错误:
“无法启动程序……,由于应用程序配置不正确,未能启动此应用程序。”
我觉得,在开发阶段的程序都选第3种比较好吧,不用管。
看了上面说的,我就准备改成静态库中使用MFC,经过我修改以后发现有一点问题:general error c101008a: Failed to save the updated manifest to the file "...解决方案也列如下:
不能保存更新的文件,就是以前残留的文件没有删除,即:要删除Debug文件夹(这个问题以前已经讨论过了,有些错误必须这样做)
解决方法:2种方法:
第1种方法.手动删除Debug,注:在VS2008有2个Debug,2个都要删
第2种方法:自动删除:在VC++6.0编译器下,build--->Clean,而在VS2008下,build--->clean solution
Building MFC application with /MD[d] (CRT dll version)requires MFC shared dll version~~~~相关推荐
- Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version 错误解决
Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version 错误解决 今天在VS201 ...
- fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC sha
调试程序时出现以下问题:d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h(24): fatal e ...
- afx.h(24): fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requi
问题: 在c++/cli控制台项目中,因为要使用cstdiofile类,所有包含了afx.h,但是报如下错误: "afx.h(24): fatal error C1189: #error : ...
- Building MFC application with /MD[d] (CRT dll vers
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC sha ...
- MFC编译错误:#error: Building MFC application with /MD[d\] (CRT dll version) requires MFC shared dll vers
编译错误:#error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version ...
- 【MFC相关问题】vs 2019 出现 building MFC application with /MD [d] (CRT dll version) requires MFC shared
看一看你的预处理指令里面是否包含了下面的这些: WIN32 _WINDOWS _DEBUG _CRT_SECURE_NO_WARNINGS
- fatal error C1189: #error : Building MFC application with /MD[d]
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shar ...
- fatal error C1189: #error : Building MFC application with /MD[d]
今天用VS2010编译一个vc6.0写的程序,没想到出了挺多问题,特地记录一下! 本身程序是在共享Dll中使用MFC,但为了在其他电脑也能运行,我改成了在静态库中使用MFC,于是出现下面错误: c:\ ...
- 成功解决ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a
成功解决ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a ...
最新文章
- 哺乳动物亚种在物种进化中至关重要
- NanoPi NEO Air使用二:固件烧录
- 使用池来实现并发服务器
- python和perl区别_对比平台--Perl与Python之间的差异
- 基于Apache Thrift的公路涵洞数据交互实现原理
- Prism+WPF使用DependencyInjection实现AutoMapper的依赖注入功能
- 隐藏马尔科夫模型HMM
- 数字图像识别学习笔记(第二章-数字图像基础(1))
- ubuntu 14 配置vsftp
- oracle中sql语句 日期加减,SQL语句里对日期进行相加减
- matlab 流星雨,dijkstra算法及其matlab实现
- 如何通过R建立流程图:DiagrammeR
- 第三季-第6课-静态函数库设计
- python基于django的学生在线考试自动阅卷系统(含错题本功能)
- WPS文档如何删除空白页
- APICloud手机端网站直接制作手机APP
- h5 android 重力 晃动,H5案例分享:html5重力感应事件
- 4.7开发者日:创业工场麦刚认为创业者活下去最重要
- CV学习:李宏毅2021机器学习(2)
- Android 从WebServer 获取PDF转图片