Thread: DOS graphics library

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

    DOS graphics library

    Hi,

    Can anybody recommend a good, free DOS graphics library for producing windows style user interfaces?

    I heard that Allegro was OK, but not sure on the licensing conditions. The license agreement needs to be free for commercial use.


    Thanks for reading.

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    221
    i think its free for commercial use

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    3

    Unhappy

    Hmm, just checked Allegro, the license is fine, but according to the 'readme' there is no chance of using it with my compiler (Borland 3.1)

    Any other ideas ?

  4. #4
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Get a newer compiler.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  5. #5
    Registered User
    Join Date
    Dec 2002
    Posts
    221
    dev c++

  6. #6
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  7. #7
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Originally posted by Salem
    > my compiler (Borland 3.1)
    Either live with the standard BGI library you have, or as XSquared says, get a better compiler.

    You'll be glad you did - no more icky segment offset near and far nonsence.
    If he's writing for true DOS (and not just a Windows command-line program) he has no choice but to either use segment-offset addressing or use another program (DOS4GW, for example) to put it into protected mode (or write his own, but that would be a slight pain in the butt). DOS programs, without the aid of an extender like 4GW, must operate in real mode; it's a real mode OS.

    dieselpower, do you care if the program is a DOS program, or a Windows command-line program? (I.e. do you care if it runs on systems without Windows installed?)

  8. #8
    Registered User
    Join Date
    May 2003
    Posts
    3
    The program has to run under true DOS only at the moment.

  9. #9
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Then you're pretty much stuck with an old compiler like you have. Your best bet will be to use its built-in DOS graphics capabilities. You'll have to build all the GUI features yourself just tracking mouse clicks/releases and keyboard activity.

  10. #10
    Registered User
    Join Date
    Feb 2003
    Posts
    28
    Greetings,

    Get DJGPP, it's free and Allegro supports it.

  11. #11
    Registered User
    Join Date
    Jun 2003
    Posts
    4
    Like augur said, DJGPP is the way to go. I used it with the Allegro library under DOS 6.2 a few years ago and it worked beautifully.

    It will also force you to use more standard and portable code, and you won't have to worry about ugly things like farmalloc().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best Graphics Library for 2d RTS?
    By arew264 in forum Game Programming
    Replies: 4
    Last Post: 04-18-2007, 12:05 PM
  2. an easy, portable, python accessible graphics math library
    By ichijoji in forum Game Programming
    Replies: 2
    Last Post: 12-07-2006, 12:10 AM
  3. What's a portable graphics library?
    By dwks in forum Game Programming
    Replies: 2
    Last Post: 07-06-2005, 03:13 AM
  4. CMU Graphics Library
    By SneakyFungus in forum C++ Programming
    Replies: 0
    Last Post: 12-28-2001, 03:04 PM
  5. Mutt Dos Library, check it out!!!
    By stupid_mutt in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-09-2001, 07:43 PM