VC++ .exe file is not working on other machine

 

Hi All,

          I have created an .exe file using vc++ 2005 but when i copy this file to some other windows machine its not working. How can I make my exe of project portable on any windows machine

 

regards, 

 

 




Answer this question

VC++ .exe file is not working on other machine

  • toc996

    http://www.microsoft.com/downloads/details.aspx FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en

    This is a link to the redistributables. You need to install this on the target machine in order for your executable to run. The link above is for x86.


  • Giorgi Moniava

    Hi

    Janakiraman,

     

    I am not able to find these files in my system. Are these files available with VC++ 2005



  • Mark.Sch

     

    I had the same problem I think...

    go to  'Project' ..

    then 'your project name' properties

    then 'C/C++'

    then 'code generation'

    then  change 'runtime library' to '/MT' rather than '/MD'

    worked for me ...

    Reagrds Dave

     

     

     


  • ultra03

     

     

    Thank You very much.

     

                *^^* The file is working. 

                                

                               So I can work now.

     

                                         Thank you very much.

     

                                                      And I'm from SouthKorea

     

                                                          At last.... my E-mail address is

    ------------------------------------------------>  rladudwhdudwh@yahoo.co.kr

     

                                                               Thank you for read it all *^^*



  • itsmike

    Thanks for the reply.

    we cannot install the fromaework on the target machine is there any other way of executing like bundling some dlls.

    Please help me.

     

    thanks for the help

     



  • RWP

    Hi,

     It is just simple... copy the following dll file along with the exe file u have created...

    1)MFC42D.DLL

    2)MFCO42D.DLL

    3)MSVCRTD.DLL

     i hope it will work....

    Best Regards,

    Janakiraman

     



  • Bramx

    It's possible to create a setup MSI that will install the CRTs in the WinSXS for you. I wrote an article on the topic at CodeProject here. (see also here, for the forum discussion which inspired the article).

     



  • Carl Karsten

    Hi, this is very technical.

    I am studying this almost everyday. I wrote a bit of note on this. If you have time, plz read;

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=179676&SiteID=1

    Hope this helps.


  • Anonymous34134

    Visual C++ Express does not support MFC... I think some of those are MFC files.
  • VC++ .exe file is not working on other machine