visual studio 2005 .exe file not running on anothe

2019-08-02 10:10发布

问题:

I have a visual studio 2005 c++ application running on a windows 7 64 bit machine.I tried to run it on another computer having windows 7 64 bit but when I copied it on to the desktop and runs the .exe file,there was no response.But I dont have the visual studio 2005 ide installed on the new machine and I am currently instaling it. Also, I googled and got lot of confusing answers. Can someone tell me what will be possible problem here?

回答1:

Try installing the "Microsoft Visual C++ Redistributable Package" on the machine where the executable is not working.



回答2:

You need to build for Release not Debug to run the application on a PC without Visual Studio. If you're already doing that, try loading the EXE into Dependency Walker on the target machine to see what other libraries might be missing.