Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 22nd, 2006, 4:10 AM   #1
tamer1221
Newbie
 
Join Date: Apr 2006
Posts: 10
Rep Power: 0 tamer1221 is on a distinguished road
i cant change text color in vc++

i used conio.h and textcolor(); but it doesn`t make a difference in vc++ and it does in turboc++
tamer1221 is offline   Reply With Quote
Old Apr 22nd, 2006, 5:03 AM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
IIRC, conio.h is a borland header file and not portable to VC++ or other compilers.
Jimbo is offline   Reply With Quote
Old Apr 22nd, 2006, 5:38 AM   #3
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
You should use Console API
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote
Old Apr 22nd, 2006, 7:02 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
InfoGeek has the right idea. However, to Jimbo, let me add that Dev-Cpp, at least inversions to 4.9.9.1, comes with a conio.h. It is implemented with the Console API. It has fewer facilities than it had a few revisions ago.

For the OP, there are examples illustrating the use of the Console API, including the changing of text color, on the forum.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC