Drawing in C++ AGAIN, PLEASE READ

This is a discussion on Drawing in C++ AGAIN, PLEASE READ within the C++ Programming forums, part of the General Programming Boards category; someone posted earlier about drawing a line, i was trying to do this in c++ and i used the function ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    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, 01:46 PM
  4. Read Array pro!!Plz help!!
    By Supra in forum C Programming
    Replies: 2
    Last Post: 03-04-2002, 02: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

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