动态链接库 (DLL) 文件是(Dynamic Link Library (DLL) files)支持 Windows(Windows)应用程序中的多个功能的关键系统文件。如果重要的 DLL 文件损坏或丢失(vital DLL files are corrupt or missing),您的 PC 可能无法运行某些程序。如果您的Windows计算机由于缺少“MSVCP140.dll”或“VCRUNTIME140.dll”而无法启动应用程序,我们将向您展示如何恢复文件。
在错误消息中,您应该会看到重新安装受影响应用程序的指令。虽然这可能会解决问题,但一些不那么激烈的故障排除步骤值得尝试。
例如,病毒可能会从您的设备中删除文件。我们建议使用 Windows Defender或您首选的防病毒软件(antivirus software)运行病毒扫描(running a virus scan using Windows Defender)。然后,如果您的设备没有恶意软件,请继续执行以下故障排除步骤。
Repair Microsoft Visual C++ Redistributable
Microsoft Visual C++ Redistributable包含Windows有效安装和运行用C++(即一种编程语言)编写的应用程序所需的数据。两个DLL文件(MSVCP140.dll和VCRUNTIME140.dll)构成了Visual C++ Redistributable的一部分。
如果这些可再发行组件损坏或存在错误,则某些应用程序可能无法在您的 PC 上启动。我们发现一些戴尔用户(some Dell users)通过修复 2015-2019 版Microsoft Visual C++ Redistributable解决了该问题。Windows设备通常有两个版本的Visual C++ 2015-2019 Redistributable。32 位 ( x84 ) 和 64 位 ( x64 ) 版本。修复(Repair)这两个版本并重新启动计算机。
- 启动Windows 设置(Windows Settings)应用程序,转到应用程序(Apps)>应用程序和功能(Apps & features)> Microsoft Visual C++ 2015-2019 Redistributable ,然后选择修改(Modify)。
注意:(Note:)您可能会发现Microsoft Visual C++ 2015-2019 Redistributable 的(Redistributable—the)两个版本——32 位 ( x84 ) 和 64 位 ( x64 ) 版本。修复(Repair)两个版本的可再发行组件。
- 在弹出的新窗口中选择修复。(Repair)
- 重新启动计算机以完成修复。
请记住(Remember)对 2015-2019 Visual C++库的所有版本重复该过程。如果修复分发包后错误仍然存在,请从 Microsoft 网站重新安装这两个库。
重新安装Microsoft Visual C++ Redistributable
重新安装Visual C++ Redistributable解决了此Microsoft 社区线程中许多(Microsoft Community thread)Windows用户的问题。
Uninstall Microsoft Visual C++ Redistributable
首先,删除库并重新启动您的 PC。
- 前往设置(Settings)>应用程序(Apps)>应用程序和功能(Apps & features)> Microsoft Visual C++ 2015-2019 Redistributable,然后选择卸载(Uninstall)。
- 选择卸载(Uninstall)继续。
- 再次,在新窗口中选择卸载(Uninstall)并在操作完成后重新启动您的 PC。
Visual C++ 2015-2019 Redistributable重复此过程。
Install Microsoft Visual C++ Redistributable
要重新安装这些库,请前往 Microsoft 网站上的Visual C++ 2015 Redistributable 下载页面(download page on Microsoft’s website)并按照以下步骤操作。
- 选择一种语言,然后单击下载(Download)按钮。
- 选择(Select)文件的两个版本并选择Next。
- 您的浏览器可能会显示一条通知,通知您 microsoft.com 想要同时下载多个文件。选择允许(Allow)并将可执行文件保存在您的 PC 上。
前往包含下载内容的文件夹并一次安装一个可再发行组件。
- 右键单击文件(vc_redist.x64或vc_redist.x86),单击以管理员身份运行,(Run as administrator,)然后按照提示操作。
修复受影响的程序
Windows 10 附带一个工具,可修复在您的 PC 上无法正常运行的程序。此工具将尝试修复导致应用程序故障的问题,而无需删除或修改应用程序的数据。
请注意,此工具不支持所有应用程序。根据我们的研究,Windows 10修复工具仅适用于您从(Windows 10)Microsoft Store安装的内置应用程序和程序。
- 首先,在Windows 任务管理器(Windows Task Manager)中强制关闭应用程序。按Ctrl + Shift + Esc启动任务管理器(Task Manager),选择应用程序并选择结束任务(End task)。
- 转到设置(Settings)>应用程序(Apps)>应用程序和功能(Apps & features),选择受影响的程序,然后选择高级选项(Advanced options)。
- 向下滚动(Scroll)页面到“重置”部分,然后选择修复(Repair)按钮。
等到(Wait)修复(Repair)按钮旁边出现复选标记。这表明修复操作成功。
从控制面板修复 Windows 应用程序(Repair Windows Apps From the Control Panel)
如果在Windows 设置(Windows Settings)菜单中没有找到修复应用程序的选项,请检查控制面板(Control Panel)。
- 按(Press)Windows键启动开始菜单(Start Menu)。展开Windows System文件夹并选择Control Panel。
- 选择程序(Program)。
- 单击程序和功能(Programs and Features)标题。
- 选择有问题的应用程序并选择修复(Repair)。
出现提示时授予修复工具管理访问权限,并等待您收到成功消息。您应该看到该操作需要多长时间的时间估计。根据您正在修复的程序,您可能还需要在之后重新启动 PC。
运行 Windows 高级系统清理命令(Run Windows Advanced System Cleanup Commands)
系统文件检查器(System File Checker)( SFC ) 和部署映像服务(Deployment Image Servicing)和管理(Management)( DISM ) 是构成Windows 中高级系统命令的(advanced system commands in Windows)工具。他们检查您的设备是否存在文件系统损坏(file system corruption)并恢复丢失的系统文件。
如果您的 PC 仍然无法启动程序,因为MSVCP140.dll或VCRUNTIME140.dll丢失,请通过命令提示符运行(Command Prompt)SFC和DISM命令。
- 按Windows 键(Windows key)+ X并选择Command Prompt (Admin)。
- 将DISM.exe DISM.exe /Online /Cleanup-image /Restorehealth到终端中,然后按Enter。
DISM工具通过从 Microsoft 的服务器复制文件来修复系统文件。运行命令时,确保您的 PC 已连接到 Wi-Fi 或以太网(Ethernet)网络。您还应该注意,DISM工具需要几分钟才能执行此操作。等到(Wait)您收到成功消息并继续下一步。
- sfc /scannow粘贴到终端中,然后按Enter。
此命令将使用来自 Microsoft 服务器的缓存副本(由DISM下载)替换损坏或丢失的系统文件。
- 当进度条达到 100% 时,将exit粘贴到终端并按Enter。
重新启动计算机并检查您是否能够使用受影响的应用程序。
重置受影响的应用程序
重置应用程序可以修复性能问题并消除烦人的错误。但是,有一个问题:该操作将从您的 PC 中永久删除应用程序的数据并将设置恢复为出厂默认设置。
- 转到设置(Settings)>应用程序(Apps)>应用程序和功能(Apps & features),单击受影响的程序,然后选择高级选项(Advanced options)。
- 滚动到“重置”部分并选择“重置”按钮(Reset)。
- 再次选择重置(Reset)。
- 当“重置(Reset)”按钮旁边出现复选标记图标时启动应用程序。
重新安装程序
如果重置应用程序后错误仍然存在,则将应用程序从您的设备中完全删除应该会有所帮助。
- 转到设置(Settings)>应用程序(Apps)>应用程序和功能(Apps & features),单击受影响的程序,然后选择卸载(Uninstall)。
- 再次选择卸载(Uninstall)按钮以确认删除应用程序。
重新启动计算机并前往Microsoft Store或开发者网站重新下载该应用程序。
恢复丢失的 DLL 文件
当迫在眉睫时,这些建议都不能解决问题,您可能会想从第三方网站下载丢失的 DLL 文件。(missing DLL files)好吧(Well),不要——至少在用尽所有可用选项之前不要。
从非官方平台获取DLL文件存在安全风险。一方面,他们可能只是暂时解决问题或根本不解决问题。更糟糕的是,它们有时已经过时或感染了病毒。
从 Microsoft 网站删除并重新安装 Visual C++ 2015-2019 库是恢复这些丢失的DLL(DLL)文件的更好、更安全的方法。您还应该考虑执行系统还原(performing a System Restore)或将 Windows 更新到最新版本。
How to Fix msvcp140.dll or vcruntime140.dll Missing or Not Found Error
Dynamic Link Library (DLL) files are critical system files that power several functionalities in Windows applications. Your PC might fail to run some programs if vital DLL files are corrupt or missing. If your Windows computer fails to launch an app because “MSVCP140.dll” or “VCRUNTIME140.dll” are missing, we’ll show you how to restore the files.
On the error message, you should see a directive to reinstall the affected app. While that might resolve the problem, some less drastic troubleshooting steps are worth trying.
For instance, a virus may delete the files from your device. We recommend running a virus scan using Windows Defender or your preferred antivirus software. Then, proceed to the troubleshooting steps below if your device is malware-free.
Repair Microsoft Visual C++ Redistributable
The Microsoft Visual C++ Redistributable contains data needed by Windows to efficiently install and run applications written in C++, i.e., a type of programming language. Both DLL files (MSVCP140.dll and VCRUNTIME140.dll) constitute a part of the Visual C++ Redistributable.
If these redistributables are corrupt or buggy, some apps may fail to start on your PC. We discovered that some Dell users fixed the issue by repairing the 2015-2019 version of the Microsoft Visual C++ Redistributable. Windows devices usually have two versions of the Visual C++ 2015-2019 Redistributable. A 32-bit (x84) and 64-bit (x64) version. Repair both versions and restart your computer.
- Launch the Windows Settings app, go to Apps > Apps & features > Microsoft Visual C++ 2015-2019 Redistributable and select Modify.
Note: You may find two versions of the Microsoft Visual C++ 2015-2019 Redistributable—the 32-bit (x84) and 64-bit (x64) versions. Repair both versions of the redistributable.
- Select Repair on the new window that pops up.
- Restart your computer to complete the repair.
Remember to repeat the process for all versions of the 2015-2019 Visual C++ library. If the error persists after repairing the distributable, reinstall both libraries from Microsoft’s website.
Reinstall Microsoft Visual C++ Redistributable
Reinstalling the Visual C++ Redistributable resolved the problem for many Windows users in this Microsoft Community thread.
Uninstall Microsoft Visual C++ Redistributable
First, remove the libraries and restart your PC.
- Head to Settings > Apps > Apps & features > Microsoft Visual C++ 2015-2019 Redistributable and select Uninstall.
- Select Uninstall to proceed.
- Again, select Uninstall on the new window and restart your PC when the operation reaches completion.
Repeat the procedure for all versions of the Visual C++ 2015-2019 Redistributable on your computer.
Install Microsoft Visual C++ Redistributable
To reinstall the libraries, head to the Visual C++ 2015 Redistributable download page on Microsoft’s website and follow these steps.
- Select a language and click the Download button.
- Select both versions of the files and select Next.
- Your browser may display a notification notifying you that microsoft.com wants to download multiple files simultaneously. Select Allow and save the executable files on your PC.
Head to the folder housing the downloads and install the redistributables one at a time.
- Right-click the files (vc_redist.x64 or vc_redist.x86), click Run as administrator, and follow the prompt.
Repair the Affected Program
Windows 10 ships with a tool that repairs programs that aren’t working correctly on your PC. This tool will attempt to fix problems causing the app to malfunction without deleting or modifying the app’s data.
Note that this tool doesn’t support all applications. From our research, the Windows 10 repair tool only works with built-in apps and programs you install from the Microsoft Store.
- Before anything, force-close the app in the Windows Task Manager. Press Ctrl + Shift + Esc to launch the Task Manager, select the app and select End task.
- Go to Settings > Apps > Apps & features, select the affected program, and select Advanced options.
- Scroll down the page to the “Reset” section and select the Repair button.
Wait until a check mark appears next to the Repair button. That indicates a successful repair operation.
Repair Windows Apps From the Control Panel
If you don’t find the option to repair the application in the Windows Settings menu, check the Control Panel.
- Press the Windows key to launch the Start Menu. Expand the Windows System folder and select Control Panel.
- Select Program.
- Click the Programs and Features header.
- Select the problematic app and select Repair.
Grant the repair tool administrative access when prompted and wait until you get a success message. You should see a time estimate of how long the operation will take. Depending on the program you’re repairing, you may also be required to restart your PC afterward.
Run Windows Advanced System Cleanup Commands
The System File Checker (SFC) and Deployment Image Servicing and Management (DISM) are tools that constitute the advanced system commands in Windows. They check your device for file system corruption and restore missing system files.
If your PC still fails to launch the program because MSVCP140.dll or VCRUNTIME140.dll is missing, run the SFC and DISM commands via the Command Prompt.
- Press the Windows key + X and select Command Prompt (Admin).
- Paste DISM.exe /Online /Cleanup-image /Restorehealth in the terminal and press Enter.
The DISM tool repairs system files by copying the files from Microsoft’s servers. Ensure your PC is connected to a Wi-Fi or Ethernet network while you run the command. You should also note that it takes the DISM tool several minutes to execute this operation. Wait until you get a success message and proceed to the next step.
- Paste sfc /scannow in the terminal and press Enter.
This command will replace corrupt or missing system files with the cached copies (downloaded by the DISM) from Microsoft’s servers.
- When the progress bar hits 100%, paste exit in the terminal and press Enter.
Restart your computer and check if you’re able to use the affected app(s).
Reset the Affected Application
Resetting applications can fix performance issues and eliminate annoying errors. But, there’s a catch: The operation will permanently delete the app’s data from your PC and revert settings to factory default.
- Go to Settings > Apps > Apps & features, click the affected program, and select Advanced options.
- Scroll to the “Reset” section and select the Reset button.
- Select Reset again.
- Launch the app when a checkmark icon appears next to the Reset button.
Re-Install the Program
If the error(s) persist after resetting the app, removing the app entirely from your device should help.
- Go to Settings > Apps > Apps & features, click the affected program, and select Uninstall.
- Select the Uninstall button again to confirm the app removal.
Restart your computer and head to the Microsoft Store or the developer’s website to redownload the app.
Restore Missing DLL Files
When push comes to shove, and none of these recommendations fix the problem, you may be tempted to download the missing DLL files from third-party websites. Well, don’t—at least not before exhausting all available options.
There are security risks attached to sourcing DLL files from unofficial platforms. For one, they may fix the problem only temporarily or don’t fix it at all. Even worse, they’re sometimes outdated or infected with viruses.
Removing and reinstalling the Visual C++ 2015-2019 library from Microsoft’s website is a much better and safer way to restore these missing DLL files. You should also consider performing a System Restore or updating Windows to the latest version.