Thread: Drawing in C++ AGAIN, PLEASE READ

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    3

    Question Drawing in C++ AGAIN, PLEASE READ

    someone posted earlier about drawing a line, i was trying to do this in c++ and i used the function "line()" from the library "graphics.h" but now i have the same question of that other guy, cos it gave me an error like this one "BGI not supported under windows", whats wrong? i read what you c++ guru´s wrote in the other topic, but it didnt help me much.So, how do i draw a line in c++ Borland 5.02? should i use a earlier version or what??

  2. #2
    Disturbed Boy gustavosserra's Avatar
    Join Date
    Apr 2003
    Posts
    244
    I do not know, but are you compiling your code to run under DOS? To use graphics.h I must use Turbo C++ (or TcLite, never know the right name).
    Nothing more to tell about me...
    Happy day =)

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    So which operating system do you have?

    All I can make out is some impression that you have a DOS compiler and a windows operating system.

    Once you step away from the basic "hello world" kind of application, your ability to mix and match compilers, graphics libraries and operating systems goes down rapidly.

    For example, I might suggest you look at dev-c++, and use the package manager (once you've installed the compiler) to download libsdl
    It might take a bit more learning, but you'll have a much more capable graphics library than BGI, and you'll have a much more modern (and compliant) C++ compiler as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Or get DJGPP - I believe that it currently will work on Windows XP, but I'm not positive.


    www.delorie.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How can I know the actual bytes read in a file read
    By pliang in forum C++ Programming
    Replies: 1
    Last Post: 06-08-2005, 04:23 PM
  2. What Would You Use To Read User Input?
    By djwicks in forum C Programming
    Replies: 11
    Last Post: 04-05-2005, 03:32 PM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. Read Array pro!!Plz help!!
    By Supra in forum C Programming
    Replies: 2
    Last Post: 03-04-2002, 03:49 PM
  5. Help! Can't read decimal number
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 09-07-2001, 02:09 AM