Click to See Complete Forum and Search --> : changing font colors in C++
Chris
10-26-2000, 03:17 PM
i'm new to C++ and i was trying to figure out how to change the color of the
font when i make my programs.. i'm doing the programming in Visual Studio
and it's just a C++ Source File, not a win32 program or anything.. can anyone
help me out?
thanks
Chris
ralph
10-26-2000, 05:20 PM
"Chris" <chaka89@yahoo.com> wrote:
>
>i'm new to C++ and i was trying to figure out how to change the color of
the
>font when i make my programs.. i'm doing the programming in Visual Studio
>and it's just a C++ Source File, not a win32 program or anything.. can anyone
>help me out?
>
>thanks
>Chris
I assume you are therefore writing for the console windows.
In that case take a look in the MSDN (disk or website) for
Platform SDK::Base Services::Files and I/O::Consoles and Character-Mode Support
"SetConsoleTextAttribute( hConsole, FOREGROUND_RED | BACKGROUND_GREEN)"
The above will do what you are looking for.
devx.com
Copyright Internet.com Inc. All Rights Reserved