Question Locked

VC++ I compiled on Vista doesn't run on XP

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm using Visual Studio 2008 Express and writing some text-mode C++ application. It runs on Vista but didn't run on XP.
Then I compiled a simple program:
// hello1.cpp : main project file.

#include "stdafx.h"
#include "stdio.h"
#include
using namespace std;

int main()
{
char s ;
cout << "\nHello World\nOne more line\n" ;
cin >> s ;
return 0;
}

It also doesn't run on XP, and I tried various build flags...nothing seems to help

2 replies

by tony hopkinson

Compiling on a later OS and running on earlier has always been problematic.

However, .NET Framework version at a guess.

3+ on Vista 2 on XP, full product you can compile for a selected framework, don't know if that option is in express. It was in Project Options in VS 2005 Professional with the Orcas add on.

This discussion is closed to new replies.