探究VS2017运行库

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liny000/article/details/82633983

解决问题:无任何编译环境的windows系统 运行VS2017编译的程序

准备工作:depends.exe windows系统(win7、win8、win8.1、win10)

depends下载地址:
http://www.dependencywalker.com/

下载各个版本的windows纯净版系统 地址如下:
https://www.microsoft.com/zh-cn/software-download/windows10
https://msdn.itellyou.cn/

安装系统,通过depends.exe 对比 安装VS2017运行库前与安装后dll的差别,替换尝试,逐步锁定最小所需库。
注:以下各个系统所需的dll是通过我的程序分析出来的(可能仅对一部分人适用)


windows7:
api-ms-win-core-file-l1-2-0.dll
api-ms-win-core-file-l2-1-0.dll
api-ms-win-core-localization-l1-2-0.dll
api-ms-win-core-processthreads-l1-1-1.dll
api-ms-win-core-synch-l1-2-0.dll
api-ms-win-core-timezone-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-multibyte-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
concrt140.dll
ucrtbase.dll


windows8 windows8.1:
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-multibyte-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
ucrtbase.dll


windows10:
不需要任何库。


上述dll一般位于C:\Windows\System32或者C:\Windows\SysWOW64路径下;

获取方法:
1.从windows10拷出这些库(测试可以用于win7 win8 win8.1)
2.在win7、win8、win8.1安装编译环境后拷出;
3.https://download.csdn.net/download/liny000/10660585

猜你喜欢

转载自blog.csdn.net/liny000/article/details/82633983
今日推荐