Enable Visual C ++ Runtime with Application

I switched from Visual C ++ 2010 Express to Visual C ++ 2012 Professional for my application (Euler Math Toolbox). To be XP compatible, I use the 110-XP platform toolkit from Update 1 Visual C ++ 2012.

In earlier versions, I added three MSV90 * .dll DLL files to the program directory and manifest for them. Can I for Visual C ++ 110? And what files do I need to include? And do I need a manifest? If so, where can I find it?

+4
source share
1 answer

To summarize my findings, there are four options:

  • Provide a link to the MS download page for the VC runtime.
  • Add the installer for the VC runtime to your installation.
  • Copy msvcr ***. dll to your program directory.
  • Compilation with static libraries.

They all seem to work.

(1) or (2) obviously has a problem with different versions of the runtime. We need to trust Microsoft and software developers to ensure compatibility.

(3) There is a problem that the added dll must run on the target machine.

I decided to use (4) because it works. To try this, set /MT in the C ++ → Code Generation properties for your project.

+3
source

Source: https://habr.com/ru/post/1483026/


All Articles