32-bit version of VC ++ distributed on 64-bit OS?

Using Visual Studio, I created a C ++ application running on a 32-bit basis. It will be deployed on both 32-bit and 64-bit Windows servers. It will not work in 64-bit mode (but rather in WoW).

Should I include the 32-bit and 64-bit versions in Visual C ++ and install the 32-bit version on 32-bit Windows and the 64-bit version on 64-bit Windows, or is it enough just to install the 32-bit redistributable ?

+4
visual-c ++ 32bit-64bit runtime
source share
5 answers

Just install the 32-bit redistributable.

+4
source share

EDIT: I commented on the misleading answer below, but the answer is that you only need 32-bit redistributable files, as Karel Petranek answered first.

This is not an answer. It should be only a comment, but since I do not have the necessary reputation for this ...:

I just wanted to warn people against the information provided by Ruel. No, the distributed 64-bit Visual C ++ packages also do not include 32-bit DLLs.

I even tested this (my) theory. I tried to run an application that required 32-bit Visual C ++ 2010 redistributable files, and it prompted me that I needed it. Then I installed the 64-bit version, and it still suggested that she needed the 32-bit version of Visual C ++ 2010. After installing the 32-bit version, it worked.

Why do people come up with theories and give them as answers, defeats me. Or perhaps the reputation system also "encouraged" him to provide not only redundant, but also false information. Or maybe he just confused C ++ with the distributable DirectX 9 (which install both 32-bit and 64-bit DLLs).

+3
source share

Both are Microsoft products, but don't let this fool you.

Your C ++ application creates a 32-bit EXE associated with 32-bit DLL files. As it happens, one or two of these DLLs are Microsoft CRT DLLs, but the OS still uses the same rules. Therefore, you do not need 64-bit DLLs.

+1
source share

Compile it with the / MT option, and the VC ++ runtime library will be compiled into your exe, so you don’t have to worry about distributing it.

Project> Properties> Configuration Properties> C / C ++> Code Generation> Runtime Library> Multithreaded (/ MT).

+1
source share

The Visual C ++ 64-bit redistributable package includes both redistributable and 64-bit Visual C ++ redistributable with the 32-bit version of Visual C ++.

-one
source share

All Articles