none
Microsoft Visual C++ 2010 Redistributable Package (x64)

    Question

  • I coded a program and made .exe file. I want to distribute the executable file to other computers.

    Microsoft Visual C++ 2010 Redistributable Package(vcredist_x64.exe) was installed on the computer which Visual Studio is not installed on to be able to run the .exe file, but I can't run the file.

    I can run the .exe file on the computer which Visual Studio is installed on.

    Do I need to install something else?

    How do I check if vcredist_x64.exe is installed correctly?


    Wednesday, October 17, 2012 7:28 PM

Answers

  • "what CPU type did you target?"

    What I meant here is the choice between x86, x64 or Any CPU.

    It appears that C++ CLI projects default to Win32 (x86), so it is possible that the 64 bit version of the C++ redistributable you mention is not what is needed on the target machine. You may have selected that because your OS is 64 bit, but on a 64 bit OS, you can install both the 32 and 64 bit redistributables (both are installed with Visual Studio on a 64 bit OS).

    http://www.microsoft.com/en-us/download/details.aspx?id=5555

    Further, as your question is specific to C++, you might consider asking in the C++ forums:

    http://social.msdn.microsoft.com/Forums/en-US/category/visualc

    If you do post there, you should expand the dialog you showed above by clicking on Show Problem Details so the core issue is displayed.

    • Marked as answer by hyundoj Thursday, October 18, 2012 4:30 PM
    Thursday, October 18, 2012 2:37 AM

All replies

  • What may be needed on the target machine(s) will depend on the project type you used in Visual Studio, so please share that information with us.

    When you built your program in Visual Studio, what CPU type did you target?

    Also, does any error message appear when you try to run your program? Please quote here.

    Wednesday, October 17, 2012 9:34 PM
  • What may be needed on the target machine(s) will depend on the project type you used in Visual Studio, so please share that information with us.

    When you built your program in Visual Studio, what CPU type did you target?

    Also, does any error message appear when you try to run your program? Please quote here.

    I coded in Visual Studio 2010 CLR Windows Forms Application, Intel CUP

    I have below error message when I start the program.

    Wednesday, October 17, 2012 9:57 PM
  • "what CPU type did you target?"

    What I meant here is the choice between x86, x64 or Any CPU.

    It appears that C++ CLI projects default to Win32 (x86), so it is possible that the 64 bit version of the C++ redistributable you mention is not what is needed on the target machine. You may have selected that because your OS is 64 bit, but on a 64 bit OS, you can install both the 32 and 64 bit redistributables (both are installed with Visual Studio on a 64 bit OS).

    http://www.microsoft.com/en-us/download/details.aspx?id=5555

    Further, as your question is specific to C++, you might consider asking in the C++ forums:

    http://social.msdn.microsoft.com/Forums/en-US/category/visualc

    If you do post there, you should expand the dialog you showed above by clicking on Show Problem Details so the core issue is displayed.

    • Marked as answer by hyundoj Thursday, October 18, 2012 4:30 PM
    Thursday, October 18, 2012 2:37 AM
  • I coded a program and made .exe file. I want to distribute the executable file to other computers.

    Microsoft Visual C++ 2010 Redistributable Package(vcredist_x64.exe and vcredist_x86.exe) was installed on the computer which Visual Studio is not installed on to be able to run the .exe file, but I can't run the file.

    I can run the .exe file on the computer which Visual Studio is installed on.

    Do I need to install something else?

    How do I check if vcredist_x64.exe is installed correctly?


    Thursday, October 18, 2012 4:26 PM
  • I have below error message:

    Thursday, October 18, 2012 4:27 PM
  • "what CPU type did you target?"

    What I meant here is the choice between x86, x64 or Any CPU.

    It appears that C++ CLI projects default to Win32 (x86), so it is possible that the 64 bit version of the C++ redistributable you mention is not what is needed on the target machine. You may have selected that because your OS is 64 bit, but on a 64 bit OS, you can install both the 32 and 64 bit redistributables (both are installed with Visual Studio on a 64 bit OS).

    http://www.microsoft.com/en-us/download/details.aspx?id=5555

    Further, as your question is specific to C++, you might consider asking in the C++ forums:

    http://social.msdn.microsoft.com/Forums/en-US/category/visualc

    If you do post there, you should expand the dialog you showed above by clicking on Show Problem Details so the core issue is displayed.

    I do have installed both 32 and 64 bit redistributables, but no luck. I posted it in C++ forum and thanks for your replies. 
    Thursday, October 18, 2012 4:30 PM
  • Why making everything so complicated. Just link your program to the static library version, not the DLL version. If you link to the static version you do not need the VCredist at all. That makes the executable larger but life much easier since you don't care about redistributable packages. In times were a 2TB HDD is below 100USD I don't care if my executable is 1MB or 5MB.
    Friday, October 19, 2012 5:17 AM
  • Hello hvundoi,

    You have opened a thread asking the same question here: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/04d0d1bc-8e85-4a90-a813-60f9aa0f7877

    And it has been moved to Visual C++ General forum.

    Please follow it to ask for a solution. This duplicate thread will be merged to that one. Thanks for your understanding.

    Regards,


    Damon Zheng [MSFT]
    MSDN Community Support | Feedback to us

    Friday, October 19, 2012 7:37 AM
    Moderator
  • This issue may not be caused by Visual C++ 2010 Redistributable Package.

    There may be some background application or service causing this issue.

    You can have a look at: http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/vtwainexe-has-stopped-working/7d483aff-fe1c-4a80-bea4-8304ddd943d8

    Regards,


    Damon Zheng [MSFT]
    MSDN Community Support | Feedback to us

    Friday, October 19, 2012 9:27 AM
    Moderator
  • Why making everything so complicated. Just link your program to the static library version, not the DLL version. If you link to the static version you do not need the VCredist at all. That makes the executable larger but life much easier since you don't care about redistributable packages. In times were a 2TB HDD is below 100USD I don't care if my executable is 1MB or 5MB.
    I am using my own library which is not managed C++, so I can't build the program when I select static library in Runtime Library. I can only select Multi-thread Debug DLL.
    Saturday, October 20, 2012 6:18 PM