graphics

This is a discussion on graphics within the Game Programming forums, part of the General Programming Boards category; how do i get the graphics.h header i tried using it in msvc++ and it didnt have it...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    224

    graphics

    how do i get the graphics.h header
    i tried using it in msvc++ and it didnt have it

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    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

  3. #3
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    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.

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    224
    then how would i use graphics in dos mode using vc++
    thanx for your help

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    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.

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    79
    Dowload allegro.
    Don't know if it's useable with MSVC, but it is with Dev C++.

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    224
    what is eaasier to use allegro, directX or OpenGL

  8. #8
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    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

  9. #9
    Registered User
    Join Date
    Oct 2001
    Posts
    224
    graphics.h is a gragphics library for dos mode

  10. #10
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Originally posted by c++.prog.newbie
    what is eaasier to use allegro, directX or OpenGL
    I say OpenGL, its fairly easy to learn, and can draw anything you want to the screen.

    This link will get you started with OpenGL today.

  11. #11
    Registered User
    Join Date
    Oct 2001
    Posts
    224
    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

  12. #12
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    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

  13. #13
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    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/

  14. #14
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    OpenGL is cross platform, not like it matters, 95% of software the software market runs on windows.

  15. #15
    Registered User
    Join Date
    Oct 2001
    Posts
    22
    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.
    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.


    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

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turtle Graphics, how does it work?
    By freddyvorhees in forum C++ Programming
    Replies: 15
    Last Post: 08-28-2009, 10:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 09:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 06:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 12:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21