Question

Locked

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

By avi.m.efrati ·
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 <iostream>
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

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Never tried it myself

by Tony Hopkinson In reply to VC++ I compiled on Vista ...

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.

Back to Windows Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums