如果您在Windows PC 上看到缺少(Windows)DLL错误,这通常表明出现问题。可能是您的软件已损坏并需要重新安装,也可能是您的 PC 存在更深层次的问题,例如系统文件损坏(corrupt system files)或顽固的恶意软件感染(stubborn malware infection)。
然而,另一个主要原因是允许程序在Windows上运行的软件库丢失或损坏。例如,“vcruntime140.dll is missing”错误表明Microsoft Visual C++运行时安装丢失或损坏。如果您想解决此问题,请执行以下操作。
Repairing or Removing a Microsoft Visual C++ Installation
vcruntime140.dll 文件是Microsoft Visual C++软件运行时库的一部分。该库由Microsoft提供,用作编译软件(使用Visual Studio在 C++ 中创建)以在Windows PC(Windows PCs)上运行的过程的一部分。如果文件丢失,会出现“vcruntime140.dll is missing”错误。
要解决此问题,您应该尝试的第一件事是修复 PC 上的Visual C++安装。如果这不起作用,您应该按照以下步骤将其完全删除,然后继续下一部分重新安装它。
- 要修复 Visual C++ 安装,您需要打开“设置”(Settings)菜单。为此,请右键单击Windows 开始(Windows Start)菜单并选择设置(Settings)选项。
- 在设置(Settings)菜单中,选择应用程序(Apps )>应用程序和功能( Apps & features)。在左侧,您会看到已安装应用程序的列表。滚动(Scroll)列表或使用搜索栏,直到找到列出的Microsoft Visual C++ 2015-2019 Redistributable 选项。如果丢失,请继续下一部分。
- 但是,如果列出了Microsoft Visual C++ 2015-2019 Redistributable 选项,请选择它,然后选择修改(Modify )选项。
- 在打开的Microsoft Visual C++ 2015-2019 Redistributable 窗口中,选择修复(Repair)选项。
- 允许该过程完成,然后重新启动您的 PC。如果您仍然看到“vcruntime140.dll is missing”错误,则需要完全删除Microsoft Visual C++运行时并重新安装它。为此,请在设置(Settings)>应用程序( Apps )>应用程序和功能( Apps & features)菜单中选择卸载(Uninstall )>卸载。( Uninstall)
- 在打开的Microsoft Visual C++ 2015-2019 Redistributable 窗口中,选择卸载(Uninstall )选项并允许该过程完成。完成后,重新启动 PC 并继续下一部分。
Installing or Reinstalling a Microsoft Visual C++ Installation
如果没有安装Microsoft Visual C++运行时库,依赖它的软件将无法运行,因此您需要安装它。如果您之前删除了损坏的安装,您还需要执行此操作。
- 首先,前往Visual Studio 网站(Visual Studio website)下载最新版本的软件运行库。向下滚动(Scroll)到页面底部,然后选择其他工具、框架和可再发行组件(Other Tools, Frameworks, and Redistributables )类别以查看可用选项。从那里,为您的 PC 选择正确的CPU架构(例如,x64用于 64 位 PC,x86用于 32 位 PC,或ARM64用于基于 ARM 的设备),然后选择下载(Download)按钮。
- 下载完成后运行安装程序文件(例如VC_redist.x64.exe)。在安装程序窗口中,通过选中提供的复选框接受许可条款,然后选择安装(Install)按钮继续。
- 让安装程序稍等片刻即可完成。如果安装没有任何问题,请选择关闭(Close)按钮关闭窗口,然后重新启动 PC。
对于大多数用户来说,这应该可以解决Windows 10(Windows 10) PC上的“vcruntime140.dll is missing”错误。但是,如果您运行的软件需要旧版本的Visual C++运行时(2015 年之前),则需要下载并安装旧版本(download and install the older version)。
您还可以通过删除并重新安装包含旧版Visual C++运行时安装程序的软件来解决此问题。这在需要多个运行时库才能正常工作的大型软件包中很常见,例如游戏。
通过重新安装与较旧的 Visual C++ 运行时安装程序相结合的软件,运行该软件所需的特定版本的库应该会自动重新安装并解决任何挥之不去的问题。
运行 Windows 更新(Running Windows Update)
Microsoft Visual C++运行时通过Windows Update接收安全更新,就像其他主要的 Windows 服务一样。如果您遇到“vcruntime140.dll is missing”错误问题,可能值得使用Windows 更新(Windows Update)服务检查任何最近的更新。
虽然这不太可能修复损坏的安装,但安装新更新可以自动修复您的安装。您可以在“设置”(Settings )菜单中检查新的系统更新。
- 要访问它,请右键单击“开始(Start)”菜单,然后选择“设置”(Settings )选项。
- 在“设置”(Settings)菜单中,选择“更新和安全”(Update & Security )选项,然后在下一个菜单中选择“ Windows 更新”。(Windows Update)
- 选择检查更新(Check for Updates)选项以搜索新更新。如果有待处理的更新,请选择立即重新启动(Restart now)选项。
Windows 将检查更新并安装当前待处理的任何更新。安装后,您需要重新启动 PC 以确保它们已正确应用。然后,您应该检查您的软件以查看丢失的运行时问题是否已解决。
在线下载 DLL 文件(Downloading DLL Files Online)
如果开始出现“vcruntime140.dll is missing”等非常具体的错误消息,您可能很想在线获取文件来修复它。存在各种DLL下载站点,可让您快速下载丢失的文件以解决问题。
但是,我们建议避免(avoiding)使用此类网站。DLL文件是Windows操作系统的关键元素,允许软件与更多受限的Windows组件进行交互。除非您绝对信任源代码,否则最好删除并重新安装整个Visual C++运行时库。
这应该可以解决大多数用户的问题,但如果您仍然遇到问题,作为最后的手段,您可以从网络中的另一台 PC 获取文件。
维护 Windows 10(Keeping Windows 10 Maintained)
上述步骤应该可以帮助您修复 Windows 10 PC 上的“vcruntime140.dll is missing”错误。在大多数情况下,修复安装或重新安装Visual C++可再发行组件应该可以解决问题,但您可能还需要考虑删除并重新安装任何受影响的软件(removing and reinstalling any affected software)。
丢失的DLL文件通常表明 PC 出现了一些问题,这就是为什么定期进行 PC 维护很重要的原因。为此,您可以保持 Windows 更新(keeping Windows updated)以确保您拥有最新的错误修复,以及运行定期恶意软件扫描(running regular malware scans)以删除可能使您的 PC 处于危险之中的恶意软件。
How to Fix a “vcruntime140.Dll Is Missing” Error on Windows 10
If you’re seeing a missing DLL error on your Windows PC, it’s usually a sign that something has gone wrong. It could be that your software is corrupted and needs reinstallіng, or it could point to deеper issues wіth your PC, such as corrupt system files or a stubborn malware infection.
Another major cause, however, are missing or corrupted software libraries that allow programs to run on Windows. A “vcruntime140.dll is missing” error, for instance, points to a missing or corrupted Microsoft Visual C++ runtime installation. If you want to fix this issue, here’s what you’ll need to do.
Repairing or Removing a Microsoft Visual C++ Installation
The vcruntime140.dll file is part of the Microsoft Visual C++ software runtime library. Provided by Microsoft, this library is used as part of the process of compiling software (created in C++ using Visual Studio) to run on Windows PCs. If the file is missing, the “vcruntime140.dll is missing” error will appear.
To fix this issue, the first thing you should attempt is to repair the Visual C++ installation on your PC. If that doesn’t work, you should remove it entirely by following these steps, then proceed to the next section to reinstall it.
- To repair a Visual C++ installation, you’ll need to open the Settings menu. To do this, right-click the Windows Start menu and select the Settings option.
- In the Settings menu, select Apps > Apps & features. On the left, you’ll see a list of installed apps. Scroll through the list or use the search bar until you find the Microsoft Visual C++ 2015-2019 Redistributable option listed. If it’s missing, proceed to the next section.
- If the Microsoft Visual C++ 2015-2019 Redistributable option is listed, however, select it, then select the Modify option.
- In the Microsoft Visual C++ 2015-2019 Redistributable window that opens, select the Repair option.
- Allow the process to complete, then restart your PC. If you still see a “vcruntime140.dll is missing” error, you’ll need to remove the Microsoft Visual C++ runtime entirely and reinstall it. To do this, select Uninstall > Uninstall in the Settings > Apps > Apps & features menu.
- In the Microsoft Visual C++ 2015-2019 Redistributable window that opens, select the Uninstall option and allow the process to complete. Once it’s finished, restart your PC and continue to the next section.
Installing or Reinstalling a Microsoft Visual C++ Installation
Without the Microsoft Visual C++ runtime library installed, software that relies on it won’t work, so you’ll need to install it. You’ll also need to do this if you’ve removed a corrupted installation previously.
- First, head to the Visual Studio website to download the latest version of the software runtime library. Scroll down towards the bottom of the page, then select the Other Tools, Frameworks, and Redistributables category to view the available options. From there, select the correct CPU architecture for your PC (eg. x64 for 64-bit PCs, x86 for 32-bit PCs, or ARM64 for ARM-based devices), then select the Download button.
- Run the installer file (eg. VC_redist.x64.exe) once the download is complete. In the installer window, accept the license terms by selecting the checkbox provided, then select the Install button to proceed.
- Allow the installer a few moments to complete. If it installs without any issues, select the Close button to close the window, then restart your PC.
This should, for most users, resolve the “vcruntime140.dll is missing” error on Windows 10 PCs. However, if the software you’re running requires an older version of the Visual C++ runtime (before 2015), you’ll need to download and install the older version instead.
You may also be able to fix the issue by removing and reinstalling software that has an older version of the Visual C++ runtime installer included. This is common in larger software bundles, such as games, that require multiple runtime libraries to work correctly.
By reinstalling software that’s coupled with an older Visual C++ runtime installer, the specific version of that library required to run the software should automatically reinstall itself and resolve any lingering issues.
Running Windows Update
The Microsoft Visual C++ runtime receives security updates through Windows Update, just like other major Windows services. If you’re having trouble with a “vcruntime140.dll is missing” error, it might be worth checking for any recent updates using the Windows Update service.
While this is unlikely to fix a broken installation, installing new updates could repair your installation automatically. You can check for new system updates in the Settings menu.
- To access this, right-click the Start menu, then select the Settings option.
- In the Settings menu, select the Update & Security option, then select Windows Update in the next menu.
- Select the Check for Updates option to search for new updates. If there are updates pending, select the Restart now option instead.
Windows will check for updates and install any that are currently pending. Once installed, you’ll need to restart your PC to ensure that they’ve been correctly applied. You should then check your software to see if the missing runtime issue is resolved.
Downloading DLL Files Online
If very specific error messages like “vcruntime140.dll is missing” start to appear, you might be tempted to source the file online to fix it. Various DLL download sites exist, allowing you to quickly download the missing file to resolve the issue.
We would recommend avoiding sites like these, however. DLL files are crucial elements of the Windows operating system that allow software to interact with more restricted Windows components. Unless you absolutely trust the source, it’s usually a better idea to remove and reinstall the entire Visual C++ runtime library instead.
This should resolve the issue for most users, but if you’re still having issues, you could source the file from another PC in your network as a last resort.
Keeping Windows 10 Maintained
The steps above should help you to fix a “vcruntime140.dll is missing” error on your Windows 10 PC. In most cases, repairing the installation or reinstalling the Visual C++ redistributable should fix the issue, but you may also need to look at removing and reinstalling any affected software.
A missing DLL file is usually a sign of a PC that’s having some issues, which is why it’s important to keep up with regular PC maintenance. You can do this by keeping Windows updated to ensure you have the latest bug fixes, as well as running regular malware scans to remove malware that could leave your PC at risk.