problem run exe on comp with no vc++

Hi I am new to visual studio and prishiate if somebody can help
When start exe on my comp with vc no problem but on another comp with no vc I have message "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem"
visual c++ 2008 express edition
create project>>win32>>win32 console application>>application type console application




#include "stdafx.h"
#include <iostream>
#include <fstream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
ofstream myfile;
myfile.open ("test.txt");
myfile << "test\n";
cout << "test"

return 0;
}
Sounds like you need the Visual C++ runtime on the 2nd computer.

How to obtain the Visual C++ 6.0 run-time components
http://support.microsoft.com/kb/259403
Topic archived. No new replies allowed.