Thread: got an error in graphics programming in C

  1. #1
    Registered User
    Join Date
    Jun 2005

    Unhappy got an error in graphics programming in C

    hi, i am using Borland C++ compiler. I got an error when I was programming graphics in C.. The error I got is

    FATAL C:\BC45\GRAPHICS.H 19:ERROR Directive:BGI graphics not supported under windows.

    Wat should I do now..?

    waiting for ur support, bye


  2. #2
    Registered User
    Join Date
    Jun 2005
    BGI (Borland Graphics Interface) is used to make images in 16 bit (usually dos) out of text. Alot of old dos programs that have pixel art use some of these. But the error means your program is calling one of these functions and your compiling it as a win32 application. There are only a few select functions that you can use under windows 32bit apps out of the BGI, and what those are i don't recall, but its needless to say they are very depreciated and useless unless you plan on making some dos apps.

    If you copy/pasted the code, i suggest reading through it to find out what it does and find out what is causing the compile error.

    If you wrote it yourself, you should double check your BGI documentation, and make sure your not using any dos only calls.

  3. #3
    Registered User
    Join Date
    Jun 2005
    hi, how can I check the BGI documentation..? I have written the code from a copy of my notes. I forgot to mention one thing. I am running this program in Windows shell not in DOS Shell..

    if possible, reply now..


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, 09:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of
    Replies: 3
    Last Post: 09-22-2003, 05:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM