C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-25-2002, 06:01 AM   #1
jackie_islam
Guest
 
Posts: n/a
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.
bye...
my e-mail address : jackie_islam@www.com

---- jackie.
  Reply With Quote
Old 02-25-2002, 08:10 AM   #2
Confused
 
Magos's Avatar
 
Join Date: Sep 2001
Location: Sweden
Posts: 3,125
Well, what graphics mode do you use then? Most modes I know of supports at least 256 colours...
__________________
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.
Magos is offline   Reply With Quote
Old 03-08-2002, 07:16 AM   #3
Unregistered
Guest
 
Posts: n/a
Angry

guys,
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.
thanx.
..................
  Reply With Quote
Old 03-08-2002, 10:40 AM   #4
Registered User
 
Join Date: Mar 2002
Posts: 28
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.

Alien.
Alien_Freak is offline   Reply With Quote
Old 03-12-2002, 01:29 PM   #5
Registered User
 
Join Date: Oct 2001
Posts: 22
256 colors...hardware interaction...

hello,
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?

thanx...
take care...
__________________
Jackie
Jackie is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
failure to import external C libraries in C++ project nocturna_gr C++ Programming 3 12-02-2007 03:49 PM
Dev-cpp - compiler options tretton C Programming 7 01-06-2006 06:20 PM
How can I use 256 Colors at a time in Turbo C fundu725 C Programming 0 08-04-2002 03:14 PM
how can I set 256 colors? rahat A Brief History of Cprogramming.com 8 12-03-2001 07:53 PM


All times are GMT -6. The time now is 03:41 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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