Visual Studio清单作用

1、作用:

制定程序依赖的C运行库的dll及版本,包括mfc,atl,crt等,在Visual Studio安装目录下的vc/redist下有debug和release版本

2、确定应用程序依赖哪些visual C++ 库方法:

查看项目-》项目设置-》常规,可以看到项目使用的是MFC和ATL库,如果过选择"在动态库中使用MFC",则程序依赖MGC dll,如果不使用MFC或ATL,仍然可能依赖CRT库(如果在项目属性-》C/C++-》代码生成-》运行时库-》多线程调试DLL(/MDd))

3、清单嵌入与不嵌入

嵌入:

优:不需要注意将清单文件和可执行程序放在同一级目录

劣:更换环境后出问题不容易排查

不嵌入:相反

4、清单设置由嵌入-》不嵌入

注意需要将所有依赖库重新编译,否则容易导致R6034,某个应用程序尝试不使用清单来加载C运行库

5、更换环境需要注意嵌入的清单所引用的crt库版本号!!!

相关推荐
邓校长的编程课堂42 分钟前
在Visual Studio中使用CMakeLists.txt集成EasyX库的详细指南
visual studio·少儿编程·easyx·信息学奥赛·图形化编程·趣味编程
菜鸟一皓4 小时前
IDEA的lombok插件不生效了?!!
java·ide·intellij-idea
yufei-coder1 天前
C# Windows 窗体开发基础
vscode·microsoft·c#·visual studio
white.tie1 天前
vscode配置golang
ide·vscode·golang
mashagua1 天前
本地访问autodl的jupyter notebook
ide·python·jupyter·autodl
DaphneOdera171 天前
Jupyter | jupyter notebook 使用 conda 环境
ide·jupyter·conda
一只积极向上的小咸鱼1 天前
jupyter本地配置
ide·python·jupyter
4v1d1 天前
Jupyter的使用分享
ide·python·jupyter
山语山1 天前
C语言——文件读写操作
java·c语言·前端·microsoft·visual studio
艾伦~耶格尔1 天前
IDEA 配置 Git 详解
java·ide·git·后端·intellij-idea