111111 and 22222
0. Sent a demo to a friend, received a hint: Lost Msvcr100d.dll
1. A look is run the library file, hurriedly let friend download and install VC + + redistribution, friend feedback or hint to lose this DLL file
2. Copy my local DLL to his machine, prompt for success
3. Too strange, ah, this thing is VC + + Runtime files Ah, why installed redistribution not yet?
4. I noticed that the file name of 100 followed by a D word, reminds me of debug~
5. Inside the VC find setting, finally found: Property->c/c++->code generation->runtime Library
6. Summary:
Msvcr100d.dll, this DLL corresponds to the setting of the runtime library version of the C + + compiler's code generation. The default vs2010 will set him to the multi-threaded Debug DLL (/MDD), where Msvcr100d.dll is used. Normal release should be set to multi-threaded (/MT) or/MD, then will go to use VC + + redistribution in the DLL. DLL with D contains debug functionality required for living debug, but not in redistribution.
7. In addition, changing the compilation mode directly from debug to release also modifies this configuration. But don't forget to put the release of VC + + dictionary in the value and link input reconfiguration Oh, these configurations will also not be copied from debug.
Recently developed a program, copy to the virtual machine environment when the test prompts the lack of msvcr100.dll, so think of compile-time settings option to remove dependencies.
What is Msvcr100.dll MS = Microsoft
V = Visual
c = C Program language
R = Run-time
MB = Version
What is Msvcp100.dll MS = Microsoft
V = Visual
CP = C + +
MB = version
Way to solve Release version Visual Studio 2010, open the items on the menu properties: Opening Configuration Properties | C + + | The code generation finds the runtime. Change the multithreaded DLL (/MD) to multithreading (/MT)
Recompile.
Debug Version Visual Studio 2010, open Item properties on menu:
Open Configuration Properties | C + + | Code generation finds the runtime. Change the Multithreaded debug DLL (/MDD) to multithreaded debugging (/MTD)
Recompile.