Thread: support 256 colors...

  1. #1

    Question support 256 colors...

    hello guys,
    i want to support 256 colors to my C progs.
    but i don't know how will i do it.
    is there anyone who will help me?
    generally i do my all progs in graphics mode, so it is very necessary for me to support 256 colors.
    pls, pls, pls help me....
    thank u everybody.
    my e-mail address :

    ---- jackie.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Well, what graphics mode do you use then? Most modes I know of supports at least 256 colours...

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

  3. #3


    my PC-OS is Windows NT and Windows 98,
    i'm using Turbo C and Turbo Compiler.
    i generally programmed in graphics mode in Turbo C.
    i enjoy it...thinking u can help me to increment it.
    i'm developing a game now, so its obvious.

  4. #4
    Registered User
    Join Date
    Mar 2002
    what graphic library are u using...

    if u're using conio.h which comes with Turbo C (awful compiler btw) it'll only support 16 colors, and 16 blinking colors (very useful to drive your teacher insane)

    u'll probably need to use something slightly more advanced...

    maybe ncurses will work (never actually played w/ them though)
    curiousity killed the cat, but it
    makes for one hell of a programmer.


  5. #5
    Registered User
    Join Date
    Oct 2001

    256 colors...hardware interaction...

    i did some advance.
    i can support 256 colors by direct VGA memory access and obviously not using the Turbo C graphics libs.
    but now the qs is that, if i support it by direct hardware interaction, then if it is necessary to write the whole prog by communicating with hardware access?

    take care...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  2. Dev-cpp - compiler options
    By tretton in forum C Programming
    Replies: 7
    Last Post: 01-06-2006, 06:20 PM
  3. 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
  4. how can I set 256 colors?
    By rahat in forum A Brief History of
    Replies: 8
    Last Post: 12-03-2001, 07:53 PM