Summary

If GibbsCAM displays an error indicating that MFC140U.dll or MSVCP140.dll is missing or could not be found, the Microsoft Visual C++ 2015–2022 Redistributable is either missing, corrupted, or was not installed correctly.

These DLL files are part of Microsoft's Visual C++ Runtime Library and are required for GibbsCAM to start. The issue can also occur if antivirus or endpoint security software prevents the runtime components from being installed.

This article explains how to restore the required Microsoft runtime components.


Important: Do not download individual DLL files from third-party websites. Always install the official Microsoft Visual C++ Redistributable package.


Table of Contents


Symptoms

You may experience one or more of the following:

  • Windows reports MFC140U.dll is missing.

  • Windows reports MSVCP140.dll is missing.

  • GibbsCAM will not start.


Procedure

Step 1 – Reinstall the Microsoft Visual C++ Redistributable

The most common cause of these errors is a damaged Microsoft Visual C++ runtime installation.

  1. Open Settings > Apps.

  2. Locate any installed versions of Microsoft Visual C++ v14 Redistributable.



  3. Uninstall the redistributable package(s).

  4. Restart the computer.

  5. Reinstall the latest supported Microsoft Visual C++ Redistributable.
    Latest Supported Visual C++ Redistributable Downloads | Microsoft Learn 

Expected Result

The required runtime libraries, including MFC140U.dll and MSVCP140.dll, are restored.


Step 2 – Reinstall GibbsCAM

After reinstalling the Microsoft runtime:

  1. Launch the GibbsCAM installer.

  2. Allow the installer to complete.

  3. Restart the computer if prompted.

  4. Launch GibbsCAM.

The installer will verify that all required runtime components are present.

Expected Result

GibbsCAM launches without displaying DLL errors.


Step 3 – Replace a Corrupted MSVCP140.dll File (If Necessary)

If reinstalling the Visual C++ Redistributable does not resolve the problem, the existing DLL file may be corrupted.

  1. Open:

C:\Windows\System32


  1. Locate:

MSVCP140.dll


  1. Rename the file to:

MSVCP140_OLD.dll


  1. Run the GibbsCAM installer again or reinstall the Microsoft Visual C++ Redistributable.

Important: Administrator privileges are required to rename files within the Windows System32 directory.

Expected Result

A new copy of the DLL is installed.


Step 4 – Temporarily Disable Security Software

Some antivirus and endpoint protection products can prevent Microsoft runtime files from being installed correctly.

If permitted by your organization's IT policies:

  1. Temporarily disable antivirus or endpoint security software.

  2. Reinstall the Microsoft Visual C++ Redistributable.
    Latest Supported Visual C++ Redistributable Downloads | Microsoft Learn 

  3. Reinstall GibbsCAM.

  4. Re-enable your security software immediately after testing.

If this resolves the issue, configure an exclusion for the GibbsCAM installer and installation directory.

Expected Result

The runtime files install successfully.


Step 5 – Install Windows Updates

Microsoft runtime libraries are updated through Windows Update.

  1. Open Settings > Windows Update.



  2. Select Check for Updates.

  3. Install all available updates.

  4. Restart the computer.

  5. Repeat until no further updates are available.

Expected Result

Windows installs the latest runtime and security updates.


Step 6 – Run Windows System File Checker (SFC)

If DLL errors continue after reinstalling the runtime:

  1. Open Command Prompt as Administrator.



  2. Run:

sfc /scannow


  1. Allow the scan to complete.

  2. Restart Windows.

If Windows reports files that cannot be repaired, perform the DISM repair procedure described in the Windows System File Checker (SFC) and DISM Repair article.

Expected Result

Corrupted Windows system files are repaired.


Expected Result

GibbsCAM launches successfully without reporting MFC140U.dllMSVCP140.dll, or related Microsoft Visual C++ runtime errors.


Additional Information

Common Causes

DLL errors involving MFC140U.dll or MSVCP140.dll are commonly caused by:

  • Corrupted Microsoft Visual C++ Redistributable installation.

  • Incomplete GibbsCAM installation.

  • Antivirus or endpoint security software blocking runtime installation.

  • Corrupted Windows system files.

  • Interrupted Windows updates.

Best Practices

  • Always install Microsoft Visual C++ Redistributables from Microsoft.

  • Keep Windows fully updated.

  • Install GibbsCAM using an Administrator account.

  • Avoid downloading DLL files individually from unofficial websites.

  • Configure antivirus exclusions if endpoint protection interferes with installation.


Troubleshooting

  • Problem: The DLL error appears immediately after installing GibbsCAM.

Possible Causes

  • Microsoft Visual C++ Redistributable failed to install.

  • Security software blocked installation.

Resolution

Reinstall the Visual C++ Redistributable and temporarily disable security software during installation if permitted.


  • Problem: Reinstalling the runtime does not resolve the error.

Possible Causes

  • Corrupted Windows system files.

  • Damaged DLL already exists in the Windows System directory.

Resolution

Rename the existing DLL (if appropriate), reinstall the Visual C++ Redistributable, and run SFC/DISM.


  • Problem: Multiple applications report missing MFC140U.dll or MSVCP140.dll.

Possible Causes

  • Corrupted Microsoft runtime installation.

  • Windows system corruption.

Resolution

Repair the Microsoft Visual C++ Redistributable and verify Windows integrity using SFC and DISM.



Explore More from CAMCO

Visit the CAMCO website to learn more about:


Keywords

MFC140U.dll, MSVCP140.dll, Missing DLL, Visual C++, Microsoft Visual C++ Redistributable, Runtime Error, DLL Error, Application Failed to Start, Windows Runtime