Can't locate missing file MSVCP140D_APP.dll

Anonymous
2023-12-19T21:10:23.5033333+00:00

This sucks. I have VS 2019 telling me a DLL is missing when I run my app in VS.

BuildOutput

Then if I try to run the EXE file i get several more error dialogs all say I am missing VC files that end in _APP.dll.

msvcpdll

I have tried many things such as reinstalling the vc redistributable file for 2015 to 2019 32 and 64 bit versions. I have come to the conclusion that these files do not exist because every time I google for one of them, the file does not have the _APP appended to it. For example, I google for msvcp140D_APP.dll and I get results for MSVCP140D.dll or MSVCP140.dll. I am so frustrated right now. Can any one explain to me how and why this is happening? Does VCPKG installation have anything to do with my problem? The program compiles, it just will not run, and only for missing DLLs that I cannot seem to find. How?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-12-20T15:32:20.45+00:00

    I figured out exactly what the problem is, but I don't have a solution for it. I suspect that my project did not get created correctly. I think RLWA32's response will help solve my problem. Castorix31, there is more to the story than what you said. That file and its sister files you refer to are found in windows/system32 and syswow64 folders. There is apparently a similar set of files that are debug and non-debug versions that reside in C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.32530.0_x64__8wekyb3d8bbwe folder and are appended with _APP.dll. I am including the release output of a BlankApp1 project and both outputs of my project to where mine fails.

    In the BlankApp1 release output, the dlls can be seen being loaded. Pay particular attention to the folders in the outputs.

    Test release output

    Then my debug output.

    Kcam debug output

    Then my release output.Kcam release output

    Contrast that to both of my outputs and you never see those dlls being loaded. Then my program reports a dependent dll not found, in both. Both projects are of Blank App (C++/WinRT) type. Now to figure out the solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.