.exe 给出错误 MSVCP120.dll is missing for Win7x64 [英] .exe gives error MSVCP120.dll is missing for Win7x64

查看:16
本文介绍了.exe 给出错误 MSVCP120.dll is missing for Win7x64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 VS2013 创建了 .exe,并通过提供注册表路径将其直接添加到控制面板.我为 x64 构建了它.它在 Win8.1x64 上运行得非常好.但是当我在 Win7x64 上启动它时,它给出了 MSVCP120.dll 错误.如果我复制 dll 就可以了.但是 dll 是否直接连接到 .exe?如果不是,我如何附加它们?

I created .exe using VS2013 and I added it directly to control panel by giving registry path. I built it for x64. It launches perfectly fine for Win8.1x64. But when I launches it on Win7x64 it gives MSVCP120.dll error. If I copy dll it works. But does the dll's are connected directly to .exe? If not how do I attach them?

推荐答案

您的错误仅意味着 Windows 7 计算机中缺少适用于 VS2013 的 MSVC 可再发行组件.Windows 7 默认没有这个 DLL.

Your error just means that the MSVC redistributable for VS2013 is missing from the Windows 7 computer. Windows 7 doesn't have this DLL by default.

但是,请不要随意复制 DLL.您需要确保可再发行组件作为安装程序的一部分或由用户单独安装.例如,您可以让安装程序检测可再发行组件的存在与否,并提醒用户安装它.您可以将它包含在您的安装包中,这是允许的.

However, please don't copy DLLs around willy-nilly. You need to make sure the redistributable is installed either as part of your installer or separately by the user. For example, you can have your installer detect the existence or not of the redistributable and alert the user to install it. You could include it with your installation package, which is allowed.

请注意,可再发行组件有 2 个版本,分别用于 x86 和 x64.您需要为您的应用程序提供正确的应用程序.您可以使用此链接下载适用于 Visual Studio 2013 的 Visual C++ 可再发行包.

Note that there are 2 versions of the redistributable, for x86 and x64. You need to supply the right one(s) for your application. You can use this link to download the Visual C++ redistributable packages for Visual Studio 2013.

这篇关于.exe 给出错误 MSVCP120.dll is missing for Win7x64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆