vc 运行库

来源:互联网 发布:淘宝比较知名的包包 编辑:程序博客网 时间:2024/05/16 01:23

如何让 vs 编译的exe 在目标机器上运行?


在你装了vs的机器上 打开这个目录: 我在vs2012在c盘 我的系统是win7(x64)

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC

两种情况 release 版 和 debug 版


release:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\redist\2052


看到的对应安装就好.


debug:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\redist\Debug_NonRedist


以x86 以例:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\redist\Debug_NonRedist\x86\Microsoft.VC110.DebugCRT\*

copy 到目标机system32下


还有mfc  GraphicsDbgRedist  这些自己想一下就好了.