![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 10
Rep Power: 0
![]() |
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++
|
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3
![]() |
IIRC, conio.h is a borland header file and not portable to VC++ or other compilers.
|
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4
![]() |
You should use Console API
__________________
PFO - My daily dose of technology. |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|