Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After building exe using VS 2010 C++ missing MSVCP100.dll

I have designed an application that requires no install and can be used by non-administrators. I would rather not lose this functionality but when I use the .exe on other computers than the one I programmed it on I get an error that a missing MSVCP100.dll is preventing the file from executing.

What am I doing wrong here? How do I include the file in my release build?

Thanks!

like image 785
CodingIsAwesome Avatar asked Jul 01 '10 23:07

CodingIsAwesome


People also ask

How do I register MSVCP100 dll?

Step 1: Uninstall the exiting Microsoft Visual C++. a) Press Windows key + x key and select Apps and Features. b) Select the Microsoft Visual C++ 2010 and uninstall it. Step 2: Download the latest Microsoft Visual C++ and install it.

How do I fix MSVCR100 dll is either not designed to run on Windows?

When you go into an app that displays the message: C: \ Windows \ system32 \ MSVCR100. dll Either is not designed to run on Windows or it contains an error. Try installing the software again using the original installation media or contact your system administrator or the software vendor for support.

How do I install MSVCR100 dll on Windows 10?

Copy the msvcr100. dll file from the \System32\ folder and paste it into the \SysWOW64\ folder. This works if you already have the DLL file in the 32-bit folder (System32) but are having troubles with 64-bit programs accessing it. The full paths of these folders are C:\Windows\System32 and C:\Windows\SysWOW64\.


2 Answers

Configure your project to statically link to the C/C++ runtime instead of linking to the runtime DLL:

  • Configuration Properties | C/C++ | Code Generation | Runtime Library

Select Multi-threaded (/MT) (or Multi-threaded Debug (/MTd) for your debug build).

As an alternative, you should be able to get xcopy deployment of the C/C++ runtime DLL using the technique documented on http://msdn.microsoft.com/en-us/library/ms235291.aspx under the heading "Deploying Visual C++ library DLLs as private assemblies". I haven't tried that technique, as it's generally simpler to just statically link if you need xcopy installation of a native C++ program.

like image 167
Michael Burr Avatar answered Sep 17 '22 16:09

Michael Burr


http://msdn.microsoft.com/en-us/library/ms235299.aspx

Distributing apps that have been compiled with Visual C++ requires distributing the C++ runtime .dlls that your app uses. In your case, I assume you want to just distribute a folder, so follow the directions (appropriately modified for your app) here:

http://msdn.microsoft.com/en-us/library/dd293565.aspx

Or just copy msvcp100.dll into your application's directory alongside the .exe and you'll be good to go.

32-bit msvcp100.dll is in C:\Windows\SysWOW64\

64-bit msvcp100.dll is in C:\Windows\System32\

like image 23
MSN Avatar answered Sep 19 '22 16:09

MSN