Use MFC in a Static Library 和 use MFC in a Shared DLL 在运用上有什么区别?
来源:互联网 发布:sql注入实例 编辑:程序博客网 时间:2024/04/19 08:48
如果选择use MFC in a Shared DLL 的话,你编译后的程序中不包含MFC库,所以文件会比较小,但是如果你的程序直接移到一个没有安装过MFC的机器上时,可能会导致找不到MFC的DLL。
如果选择Use MFC in a Static Library ,那你编译后的程序就直接包含了调用MFC的部分的库,文件可能会大一些,但是可以直接移到其他机器上运行。
前者是动态连接,发布要带MFC得DLL文件。
后者是静态链接,发布不用带MFC的DLL文件。
如果可执行文件只有一个,使用前者,执行速度快,但文件比较大。
如果可执行文件多个,使用后者,因为DLL文件是共享的,所以文件体积总量减少。
单个文件也小。加载执行块,但运行速度略比前者慢。
used in a static library:
使用lib文件。lib是已经编译好的二进制文件,可以与你的工程静态链接起来成为一个exe。
used in a shared dll:
使用dll文件,函数实现隐藏在DLL文件内部,你的工程编译成exe文件后,运行时才调用dll 。
- Use MFC in a Static Library 和 use MFC in a Shared DLL 在运用上有什么区别?
- Use MFC in a Static Library 和 use MFC in a Shared DLL 在运用上有什么区别
- Use MFC in a Static Library 和 use MFC in a Shared DLL 在运用上有什么区别?
- Use MFC in a Static Library 和 use MFC in a Shared DLL 区别
- Use MFC in a Static Library 和 use MFC in a Shared DLL 的区别
- 关于Use MFC in a Shared DLL和Use MFC in a Static Library 转换遇到的问题
- Use MFC in a Static Library
- use MFC in static LIB与use MFC in shared dll在下面这段程序的区别
- “Use MFC in a Static Library” -> CRT static
- 请选择【Use MFC in a Static Library】创建工程
- Use MFC in a Static Library,This may be due to a corruption of the heap....
- ow to use DllMain in a MFC dll project (ZZ
- How-to use a shared library in native-activity
- 如何在没有安装MFC的机器上运行程序--更改VS设置为Use MFCin a static Library
- VS的USE MFC IN SHARE DLL
- Cannot use this in a static context
- Cannot use this in a static context
- Cannot use this in a static context
- DataGridView的字段的顺序
- 关于STDIN,STDOUT,STDERR的图解分析
- 浅谈RPG Maker XP自动地图元件的绘制原理
- 使用fread读取二进制文件时,一定打开的时候使用‘rb’,不要只写r
- T-Sql变量
- Use MFC in a Static Library 和 use MFC in a Shared DLL 在运用上有什么区别?
- Oracle PL/SQL 概述
- mysql 语句的调度优先级及改变
- Android 仪表盘 图片 中心 旋转
- 在Win32 Consle Application如何使用MFC类 ,unresolved external symbol __beginthreadex
- Android Service概述
- android 声音播放
- C语言各种数据类型在系统中占的字节和取值范围
- 查询数据库后,datatable的字段类型问题