Let's say I built the following C++ code into HelloWorld.exe
with Visual Studio 2015, targeting Release, platform x64.
#include <iostream>
int main()
{
std::cout << "Hello world!!" << std::endl;
return 0;
}
Years ago, I could simply copy msvcp###.dll
(or msvcr###.dll
for C) along with HellowWorld.exe
and have a runnable program.
I have just installed VS2015, and now it seems that I can't just bring msvcp140.dll
along. There seems to be 70~ish api-ms-win-.....dll
files in my System32
folder that need to come with it.
I know the best policy is to have them install the redistributable... but for cases where they can't, copying the .DLL used to be a viable alternative. Is it still the case? Am I missing something easy?
To sum up: I had thought I could just copy msvcp140.dll
and have it work, but this doesn't seem to be the case. Am I wrong?
Note: I don't see the api-ms-....dll
files in the list of things you are allowed to redistribute. Or is it understood this is part of the 2015 runtime and that comes along with it?