C VC8 project executable is not executing in machine where vc8 is not installed

264 Views Asked by At

Executable generated by vc8 C project (in windows 7) is running in all windows machine (both win xp and 7) in which vc8 is installed. But its not running in one win xp machine where vc8 is not installed, but vc6 is installed. Error message is System cannot run the executabe.

Is it happening because my vc8 project is not generating vc6 compatible exe ? Please some one help is there any way to solve this problem.

Note : Creating vc6 project and adding all c files is a complex task, which will take so much time for me.

1

There are 1 best solutions below

3
On BEST ANSWER

You don't need to have visual studio installed to run an application on another machine. Compile in release mode and install the redistributable package on the target machine.

For VC8 (2005):

VS 2005 x86

VS 2005 x64

for other versions just search for c++ redistributable package

EDIT: If you compile in debug mode you need the debug versions of the runtime library etc. However these are not redistributable. For a workaround (for use on testing machines, not for clients) see here for more details.