Does graphics.h work with windows??

This is a discussion on Does graphics.h work with windows?? within the C++ Programming forums, part of the General Programming Boards category; Hello, I use Borland C++ 5.0. Everytime I include graphics.h, I get a compile time error which says "BGI graphics ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    79

    Does graphics.h work with windows??

    Hello, I use Borland C++ 5.0. Everytime I include graphics.h, I get a compile time error which says "BGI graphics not supported on windows." How can this be?

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    graphics.h is a dos graphics include. In windows you use the GDI for your graphics. It's kinda fundamental for windows to function the way it does.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    79
    But I want to use graphics in dos. Yet, I get this error. What must I do?

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    oh you're talking about a console app. well console is not truly the same as dos. I can tell you that much. I don't know how Borland chose to handle that. If it is a strictly DOS compiler then I would think it would work but if it is a "console" compiler as VC++ is then you're probably stuck. Why do you want to code graphics for dos on a windows system anyway?
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    79
    Yes, I think it is a console compiler. Perhaps you could give me an example of a DOS compiler, and where I can download it?
    Moreover, if this version of Borland C++ is meant to run on windows, why would they supply a header file which will not run on windows?

  6. #6
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    dunno really, maybe someone else can take over here. I'm really a windows programmer and haven't done much in the way of DOS in a long time. Anyone?
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  2. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  3. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  4. Vector that creates new windows doesn't work (MFC)
    By Shadow12345 in forum Windows Programming
    Replies: 6
    Last Post: 09-10-2002, 07:39 AM

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