scytheuk
01-28-2002, 05:36 AM
Does anyone have it.
Was reading up on some c++ graphics tutorials that say to include it at start.
But I dont appear to have it on my computer.
Thanxs
Scytheuk
reboot
01-28-2002, 08:45 AM
What compiler are you using? I don't know if they still do, but the old Borland compilers used to come with a graphics.h
Microsoft compilers never have.
Keltus
01-28-2002, 02:40 PM
graphics.h is for old DOS programs. VC++ has stopped supporting the compilation of DOS applications since version 2. (now we're on version 7)
it will not work on windows
there are no standard C++ libraries for graphics, but you can use the windows GDI to create GUI. just instead of console applications, you need to make win32 applications
scytheuk
01-29-2002, 06:09 AM
I wouldn't have a clue what compiler im using,
Is there some kind've of standard with visual studio 6, coz if there is thats what im using.
Ive never used C++ before, and just searched for some code examples on-line.
One of the better sites i found had some code but, it mentions that it requires the graphics.h file.
reboot
01-29-2002, 07:59 AM
VC++ doesn't come with a graphics.h file.
scytheuk
01-29-2002, 08:57 AM
so how would i go about doing graphics in vc++?
The only tutorials i have found obviously require this.
Are there any that dont?
reboot
01-29-2002, 09:44 AM
What kind of graphics? If you mean DOS, you'll have to find an old VC++ v1.52 or earlier, because they stopped supporting DOS compilation with that version. If you mean Windows, you use Windows API to do graphics.
And if you're asking about something other than Windows, you're probably really, really in the wrong place anyway.
divil
01-29-2002, 09:45 AM
you want to find Windows graphics tutorials, because thats the platform you're developing for. The includes and libraries you need for this are already there, in gui32.
Keltus
01-29-2002, 03:51 PM
if you've never done C++ before, I don't suggest you start with graphics
but if you do, look up the GDI section in MSDN