Hi.
I'm trying to create a .exe file that I can execute on any windows xp/2k computer.
Im used to writing in C# so I thought I'd try this in C++.
To test this I wrote a simple hello world app in Visual Studio and compiled using the same method I would using C# and it created a .exe file.
This exe file runs perfectly on my machine but wont run on any other computer.
This is my test code.
I've searched the net for instructions on how to compile C++ and with what little info I've found I thought once I had the exe file it shoud work.
What am I missing here?
Thanks in advance.
I'm trying to create a .exe file that I can execute on any windows xp/2k computer.
Im used to writing in C# so I thought I'd try this in C++.
To test this I wrote a simple hello world app in Visual Studio and compiled using the same method I would using C# and it created a .exe file.
This exe file runs perfectly on my machine but wont run on any other computer.
This is my test code.
Code:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
What am I missing here?
Thanks in advance.
Comment