VC++ I compiled on Vista doesn't run on XP - TechRepublic
Question
February 6, 2008 at 07:11 AM
avi.m.efrati

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

by avi.m.efrati . Updated 18 years, 5 months ago

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

This discussion is locked

All Comments