how do i get the graphics.h header
i tried using it in msvc++ and it didnt have it
how do i get the graphics.h header
i tried using it in msvc++ and it didnt have it
read this
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
instead of pointing him to the FAQ and making him even more confused, why don't you just explain to him what graphics.h is besides that it is copyrighted.
Graphics.h is only compatible with Borland Turbo C++ 3.1. That compiler is a DOS compiler. In Microsoft Visual C++, it is a windows compiler. Graphics.h is only for Borland Turbo C++, which is a DOS compiler.
I hope ya understand now.
then how would i use graphics in dos mode using vc++
thanx for your help
You don't. VC cannot produce DOS programs, just windows console applications. Console applications don't use graphics.
If you need to use DOS graphics, you will have to get a DOS compiler. I don't know if there still exist supported versions.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
what is eaasier to use allegro, directX or OpenGL
What's the "graphics.h" header file anyways?
What will people say if they hear that I'm a Jesus freak?
What will people do if they find that it's true?
I don't really care if they label me a Jesus freak, there is no disguising the truth!
Jesus Freak, D.C. Talk
-gnu-ehacks
graphics.h is a gragphics library for dos mode
I say OpenGL, its fairly easy to learn, and can draw anything you want to the screen.Originally posted by c++.prog.newbie
what is eaasier to use allegro, directX or OpenGL
This link will get you started with OpenGL today.
what would be best to learn if i say wanted to make a game in the future like a rpg or a battleship game with sound and animation
Hmm...What's easiest to learn? Well, depends on your background. I've never used Allegro, so this post won't have anything about that.
Now, DirectX is probably easier to learn if you know the Win32 API, because you already know a lot of the syntax, and it's just easier, with everything being similiar to the Win32 stuff.
Now, for people from a Linux background, or totally new to graphical programming, I think OpenGL programming is easier if you have no Win32 experience, because you don't have an Hungarian notation, and you don't have to use Win32 API to create a window.
This is just my opinion though.
What will people say if they hear that I'm a Jesus freak?
What will people do if they find that it's true?
I don't really care if they label me a Jesus freak, there is no disguising the truth!
Jesus Freak, D.C. Talk
-gnu-ehacks
Allegro is very easy to learn and use and supports sound and input as well as graphics. It is cross platform, so you can recompile for Windows, DOS, Linux, BeOS, and soon Mac without changing a single line of code. Not even OpenGL can boast that. Allegro is a wrapper. In otherwords, it will use the best lib on anygiven platform. It can use DirectX for you, or it can use OpenGL, so performance is equal.
Allegro works with MSVC, Borland, GCC, Mingw32, DJGPP, Cygwin, and many, many other compilers.
Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/
OpenGL is cross platform, not like it matters, 95% of software the software market runs on windows.
Thats not entirely true. I have used inline _asm to call interrupt 13h on the video card (got me into modeX), but why you would do that anymore is far beyond me.Originally posted by nvoigt
You don't. VC cannot produce DOS programs, just windows console applications. Console applications don't use graphics.
If you need to use DOS graphics, you will have to get a DOS compiler. I don't know if there still exist supported versions.
Whats easier to use? Hell, I havent really had a problem with any of them, though I would recommend DirectX because now with 8.1 there is by FAR more documentation done by microsoft than ever before. But OpenGL is always a good thing to learn, so, take your first pick, learn that, then learn the other. (the transition is cake)
-Vulcan