After reinstalling Studio, the project ceased to run on other machines. Why?

Was Studio VS 2019 and was a working draft. After you compile the project received EXE-schnick, which is no problem and error run on other computers.

Reset VS 2019 ( just :| ). Open the project everything works fine and compiles into an EXE as before. But now when I run the. EXE file on another computer, I get an error that requires "VCRUNTIME140_1.dll"

spoiler
Cannot continue code execution, because the system has not found VCRUNTIME140_1.dll. To resolve the problem, try to reinstall the program.


Want to understand what happened and how to fix it. No add-ons and plug-ins in VS and there never was. Computers and their configs and have not changed.

Really doubt it, but could this be due to the fact that the project was added "MessageBox-s" with all sorts of notifications and text?
April 3rd 20 at 18:30
1 answer
April 3rd 20 at 18:32
Solution
You need to make to your software installer Visual Studio Redistributable 2019.
He just puts these dll.
But after all before such was not, and now appeared. Want to find out why: what the project could require its installation? - Nicola_Oberbrunner71 commented on April 3rd 20 at 18:35
@Nicola_Oberbrunner71, before linking the CRT you had a static default, now the default is dynamic.
Change the project settings back to static (flag from /MD to be changed to /MT) and vc_redist will not carry [msdn]. - geovanny commented on April 3rd 20 at 18:38
@geovannyreally helped, but the program crashes "an unhandled exception Occurred at" in line with the condition, which had not worked. You have to dig? - Nicola_Oberbrunner71 commented on April 3rd 20 at 18:41
Everything works. Forgot to move the config file of the program to another machine, so the beat error. Everything works, thank you! From a legal point of view, and license - can I sell the program is compiled in such a way (option MT)? - Nicola_Oberbrunner71 commented on April 3rd 20 at 18:44
@Nicola_Oberbrunner71, Yes, you can sell - Bradley.Connelly commented on April 3rd 20 at 18:47
@Nicola_Oberbrunner71if everything works well, you should put a note on the solution of the problem.
And on account of legal issues, you should ask the question with appropriate tag. Q&A(Toaster) was created as a collection of recipes to solve specific issues. - geovanny commented on April 3rd 20 at 18:50
@Nicola_Oberbrunner71,
From a legal point of view, and licenses

How so? Sometimes you need to read the license under which you use in licensee to VS there is all infa.
There are restrictions on the components. And for businesses ...
An individual license. If you are an individual, developing their own applications either for sale or for any other purpose, you can use this software for developing and testing such applications.


https://docs.microsoft.com/en-us/visualstudio/rele...
Visual C++ Runtime Files
Subject to the License Terms for the software, you may copy and distribute the following files, unmodified, as a part of the installation package of your program: ...


https://visualstudio.microsoft.com/ru/license-terms/ - luisa_Steuber commented on April 3rd 20 at 18:53

Find more questions by tags C++Visual Studio