<graphics.h> problem

This is a discussion on <graphics.h> problem within the C++ Programming forums, part of the General Programming Boards category; When i put Code: #include <graphics.h> ERROR BGI graphics are not supported under windows. How can I repair this problem. ...

  1. #1
    Registered User
    Join Date
    Jun 2005
    Location
    ALBANIA
    Posts
    6

    <graphics.h> problem

    When i put
    Code:
    #include <graphics.h>
    ERROR
    BGI graphics are not supported under windows. How can I repair this problem. note: I have borland c++ 5.02

    bye

  2. #2
    Registered User mitakeet's Avatar
    Join Date
    Jun 2005
    Location
    Maryland, USA
    Posts
    212
    Switch back to DOS? Upgrade your graphics toolkit?

    Free code: http://sol-biotech.com/code/.

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Unhappy Welcome to the world of non-standard C++.

    The program you are trying to compile was written for a specific compiler, and a specific operating system / platform.

    If you want to use a different compiler, and run it on a different operating system, you will need to re-write the non-standard parts of the code. This is called porting the program, and it is uaually rather difficult. Sometimes it's easier to start-over and simply re-write the program.

    There are no graphics in standard-portable C++. (There is a Windows 32-bit API standard which is portable between Windows compilers.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 05:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 09:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 07:54 PM

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