4
Contributors
4
Replies
24
Views
2 Years
Discussion Span
Last Post by Schol-R-LEA
1

Don't. graphics.h comes from the old wild west days of C++ and is not portable/standard.

Edited by NathanOliver

2

As NathanOliver said, the Borland graphics.h header, and the library it declares, are not standard C++; indeed, there is no standard graphics package for C++. The Turbo C++ package, furthermore, was specific to MS-DOS, and while programs written for it would work under Windows in the command shell prior to Windows Vista, the removal of 16-bit support in Vista and subsequent Windows versions means that it won't even run in current versions of Windows without using a DOS emulator.

There are a few ports of the graphics.h to Windows, for the sake of backwards compatibility, but none of them are complete, and they all reimplement the library in different ways. I don't know of any that work with Visual Studio 2013, and in any case, they were never the preferred means for writing Windows console programs, never mind GUI programs.

But this is all secondary, as the question itself assumes the answer - you've presented us a Shoe Or Bottle Problem for which the best answer is, 'stop what you are doing and reconsider'. In order to help you in a meaningful way, you would need to tell us what you are trying to accomplish, not the tools which you want to use.

So: what is it you are trying to write? Until we know that, we cannot help you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.