Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing msvcr100.dll

I made a program in Visual Studio 2010 on Windows 7 64-bit. When I try to run it on Windows XP 32-bit I got message that msvcr100.dll is missing. When I try to copy that file from Win7 to WInXP I got message that msvcr100.dll is wrong. How to set building in VS so msvcr100.dll would not be necessary?

like image 926
Ichibann Avatar asked Sep 22 '10 10:09

Ichibann


People also ask

Where can I find msvcr100 dll?

Msvcr100 DLL Missing FAQ Msvcp100 DLL file on Windows 10 is about 421,200 bytes. It is located in the C:\Windows\System32 or C:\Windows\SysWOW64 folder of your File Explorer.

What does msvcr100 dll mean?

msvcr100.dll is a part of Microsoft Visual C++ and is required to run programs developed with Visual C++. Some games or applications may need the file in the game/application installation folder. Copying it from Windows systemfolder to the install-folder of the game/application should fix that problem.


1 Answers

First you need to make sure you're building a 32 bit executable - 64 bit ones won't run on 32 bit Windows.

Then you can either...

  • Ship the 32 bit redistributables with your application.
  • Remove the runtime dependency altogether and link statically to the C++ runtimes. To do this, set Project -> Properties -> Configuration Properties -> C/C++ -> Code Generation -> Runtime Library to Multi-threaded (/MT).
like image 136
JoeG Avatar answered Nov 09 '22 23:11

JoeG