'I cannot run my C++ app without running visual studio community 2022

When I built my program and deleted visual studio(cause I didn't want it anymore) I cannot run my application.

The app first asks for two DLL files ( vcruntime140d.dll and ucrtbased.dll). I downloaded it then I got an error that the application could not start correctly (0xc000007b).

I reinstalled Visual Studio again and rebuilt it with a full database. Then delete the visual studio and tried to run the application again and I get the same error.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source