Well the following code I used to run graphics.h functions in windows xp
int driver,mode;

Without this code functions of graphics.h (circle, line, arc etc.) did not run
But in windows 7 this code is not working c++ is showing errors ….Well I am using the same version of turbo c++ I used in windows xp

Now, is there any new version of c++ for windows 7 who will run the code
OR is there any alternative code which will run the functions of graphics.h
I just want my compiler not to show errors when I use any functions of graphics.h and compile them successfully …


Recommended Answers

All 2 Replies

Download DOSBox and try running it under that. Otherwise, use it under XP. You're trying to push a plow with a high speed train.

Member Avatar

Since the Borland <graphics.h> library is pretty much obsolete you might want to consider using Microsoft Visual C++ Express of Visual Studio 2008 or 2010 with DirectX libraries.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.