LoginSignup
2
0

More than 3 years have passed since last update.

VCのRuntimeライブラリー

Posted at

VisualStudioC++で開発したアプリは新しいWindows環境で実行すると、
「MSVCR140.dll/VCRUNTIME140.dllがないため、プログラムが開始できません」というエラーが出た場合があります。VC++のRuntimeライブラリーを見つからないのは原因と考えられます。
対応方法は二つあります。
* Runtimeライブラリーをダウンロード/インストールする
* RuntimeライブラリーDLLをアプリに付属

VCのRuntimeライブラリーの入手は[こちら]です。
(https://visualstudio.microsoft.com/downloads/?rr=https%3A%2F%2Fwww.javadrive.jp%2Fphp%2Finstall%2Findex2.html)

ただ一般ユーザーに向かない方法と思います。

RuntimeライブラリーDLLをアプリに付属するのは一番簡単かもしれません。

以下のDebug用DLLファイルを以下のVS2017開発環境からコピーします
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Redist\MSVC\14.16.27012\debug_nonredist\x86\Microsoft.VC141.DebugCRT
C:\Program Files (x86)\Windows Kits\10\bin\x86\ucrt

concrt140d.dll
msvcp140_1d.dll
msvcp140_2d.dll
msvcp140d.dll
ucrtbased.dll
vccorlib140d.dll
vcruntime140d.dll

Release用DLLを以下のフォルダーからコピーします。
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Redist\MSVC\14.16.27012\x86\Microsoft.VC141.CRT
C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x86

concrt140.dll
msvcp140.dll
msvcp140_1.dll
msvcp140_2.dll
ucrtbase.dll
vccorlib140.dll
vcruntime140.dll
2
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0