The source program is probably statically linked , while you are trying to dynamically link your executable, which results in a smaller file, but depends on the functions inside MSVCR100.dll(v10 Microsoft C Runtime Library) that would be included inside the executable if you statically link.
To statically link the DLL, go to your project properties and change the build mode from MDto MT. In Visual Studio 2010/2012, this project property is C / C ++ → Code Generation → Runtime Library.
source
share