Solution for missing vcruntime140d.dll

Solution for missing vcruntime140d.dll

Reason: The console program written in vs2019 was taken to run on Windows7, indicating that the system is missing vcruntime140d.dll
Method 1: Install Visual C ++ Redistributable for Visual Studio 2015 (requires Windows7withSP1). (There is no solution to the problem, this should be the solution to the lack of vcruntime140.dll).
Method 2: Use the Dependency Walker software to analyze the missing dlls and the installation locations of these dlls, download the corresponding dll installation, and then register with regsvr32
1 Download vcruntime140d.dll
2 Install to the corresponding directory
Windows 95/98 / Me system Copy the dll to the C: \ Windows \ System directory.
   For Windows NT / 2000, copy the dll to the C: \ WINNT \ System32 directory.
   For Windows XP / WIN7 system, copy the dll to C: \ Windows \ System32 directory.
   Start-Run-type regsvr32 vcruntime140d.dll.
   (This method does not solve the problem. When you start-run-type regsvr32 vcruntime140d.dll, you are always prompted that the file cannot be found in the path).
Method 3: Choose static compilation. Project Properties-Configuration Properties-C / C + ± Code Generation-Runtime Library-Multithreaded Debugging (/ MTd). (Solve the problem).
This is set to static compilation, so that the dll is written into the exe, and can be run without an external library.
Static compilation When the program is compiled, the dll will be connected to the target code, and the static library will no longer be needed when the program runs.
Dynamic compilation When the program is compiled, the dll is not connected to the target code, but is loaded only when the program is running. Therefore, the dynamic inventory is also required when the program is running.
vs defaults to dynamic compilation

Published 3 original articles · Likes0 · Visits 236

Guess you like

Origin blog.csdn.net/weixin_34007256/article/details/105031687
Recommended