Thread: How to use 256 or higher color in Turbo C++ or else other c++ ?

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    88

    Red face How to use 256 or higher color in Turbo C++ or else other c++ ?

    thx~!

  2. #2
    In Turbo C++ you'll be using BGI (DOS). Mode 13 is 256 colours but you're looking at horrible resolution.

    If you're interested in moving on to better graphics, I'd suggest you move to another compiler and start doing Win32. That leads to DirectX and you cant get much better than that.

    There are lots of options available to you for both choices. There are free compilers available for Win32 as well as free libraries that will give DOS applications better graphical capabilities.

    Give me a little more info on what you want to get into and I'll give you more info on what might help.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    88
    Originally posted by lightatdawn
    In Turbo C++ you'll be using BGI (DOS). Mode 13 is 256 colours but you're looking at horrible resolution.

    If you're interested in moving on to better graphics, I'd suggest you move to another compiler and start doing Win32. That leads to DirectX and you cant get much better than that.

    There are lots of options available to you for both choices. There are free compilers available for Win32 as well as free libraries that will give DOS applications better graphical capabilities.

    Give me a little more info on what you want to get into and I'll give you more info on what might help.
    how to use mode 13 ?

    initgraph has 2 paras : "graphdriver" and "graph mode".

    i want to practice more on writing easy progmans ,
    then i will move to write win32 progmans.

    THX.

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    88
    Originally posted by Magos
    http://www.brackeen.com/home/vga/index.html

    Thank you !!
    a very helpful web page.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Remember Turbo? It is comming back
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2006, 01:26 PM
  2. Problem with my file opener
    By kzar in forum C Programming
    Replies: 7
    Last Post: 04-20-2005, 04:20 PM
  3. Replies: 0
    Last Post: 09-25-2002, 04:34 AM
  4. How can I use 256 Colors at a time in Turbo C
    By fundu725 in forum C Programming
    Replies: 0
    Last Post: 08-04-2002, 03:14 PM
  5. How I can Show the pointer of mouse int 800*600 256 color mode in Turbo C++?
    By hadizadeh in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-12-2001, 07:17 AM