944,030 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2950
  • C++ RSS
Jan 6th, 2006
0

Use of Color in C++

Expand Post »
Can anyone help here. I want to have some color in the intro page the a database program I am creating. DOS based. ie it will be used in a 98 OS in dos.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mogey is offline Offline
2 posts
since Jan 2006
Jan 6th, 2006
0

Re: Use of Color in C++

Which compiler are you using?
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Jan 6th, 2006
0

Re: Use of Color in C++

The one in Microsoft Visual studio where you use a 'comand prompt window' "cl -GX filename.cpp"
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mogey is offline Offline
2 posts
since Jan 2006
Jan 16th, 2006
0

Re: Use of Color in C++

I don't to much windows/dos programming, but I think there is a library. You can also use ncurses, I think there is a windows version in Cygwin (http://www.cygwin.com/). Also, if it works in dos, you can just make your own quick library to print ANSI commands, for example "\e[0;31m" then your text would make it red. You can find a list of ANSI escape codes at http://www.bluesock.org/~willg/dev/ansi.html. Hope this helped.

-matt
Reputation Points: 10
Solved Threads: 0
Light Poster
calcop is offline Offline
27 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Programming for Symbian OS
Next Thread in C++ Forum Timeline: C++ derived class virtual functions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC