Click here to Skip to main content
15,923,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl performance Pin
5-Jan-01 5:48
suss5-Jan-01 5:48 
QuestionHow to desgine a chat software for voice in VC++ ? Please Help ! Pin
4-Jan-01 8:32
suss4-Jan-01 8:32 
AnswerRe: How to desgine a chat software for voice in VC++ ? Please Help ! Pin
26-Jan-01 0:34
suss26-Jan-01 0:34 
GeneralRe: How to desgine a chat software for voice in VC++ ? Please Help ! Pin
wildchaser29-May-01 19:12
wildchaser29-May-01 19:12 
GeneralRe: How to desgine a chat software for voice in VC++ ? Please Help ! Pin
Christian Graus29-May-01 19:21
protectorChristian Graus29-May-01 19:21 
QuestionHow to desgine a chat software for voice in VC++ ? Please Help ! Pin
4-Jan-01 8:30
suss4-Jan-01 8:30 
GeneralConsole text color Pin
4-Jan-01 6:59
suss4-Jan-01 6:59 
GeneralRe: Console text color Pin
Tim Deveaux4-Jan-01 8:21
Tim Deveaux4-Jan-01 8:21 
There are lots of great things you can do with the console api.

First you get a handle to the console:
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

This may be 0 - as long as its not INVALID_HANDLE_VALUE you're ok. Note - you'll need to #include <windows.h>

Now you can set colors. This sets white text on a red background:

SetConsoleTextAttribute(hConsole, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | BACKGROUND_RED);

I tested with printf, and assume cout is ok. You might like to investigate the fns like WriteConsole etc. Search for "Console functions" in the msdn. There is stuff for positioning too.

BTW I copied my own previous message on this Smile | :) Search this forum for 'console' for more stuff on consoles. What a great site! Big Grin | :-D
GeneralGenerating words Pin
4-Jan-01 6:56
suss4-Jan-01 6:56 
GeneralRe: Generating words Pin
Christian Graus4-Jan-01 10:55
protectorChristian Graus4-Jan-01 10:55 
GeneralRe: Generating words Pin
Christian Graus4-Jan-01 11:00
protectorChristian Graus4-Jan-01 11:00 
QuestionHow to use IPAdress Control in VB ?? Pin
Patrick4-Jan-01 2:09
Patrick4-Jan-01 2:09 
Generalgetting info about another process Pin
subir talukder4-Jan-01 1:39
subir talukder4-Jan-01 1:39 
Generalgetting info about another process Pin
subir talukder4-Jan-01 1:37
subir talukder4-Jan-01 1:37 
Generalgetting info about another process Pin
subir talukder4-Jan-01 1:37
subir talukder4-Jan-01 1:37 
GeneralMake Controls Invisible Pin
3-Jan-01 14:58
suss3-Jan-01 14:58 
GeneralRe: Make Controls Invisible Pin
Michael Dunn3-Jan-01 15:18
sitebuilderMichael Dunn3-Jan-01 15:18 
GeneralRe: Make Controls Invisible Pin
Masoud Samimi4-Jan-01 6:25
Masoud Samimi4-Jan-01 6:25 
QuestionAlternate CA for NT security? Pin
Jonathan Gilligan3-Jan-01 12:36
Jonathan Gilligan3-Jan-01 12:36 
General2's compliment Pin
Mike Zolna3-Jan-01 10:47
Mike Zolna3-Jan-01 10:47 
GeneralRe: 2's compliment Pin
Michael Dunn3-Jan-01 15:25
sitebuilderMichael Dunn3-Jan-01 15:25 
GeneralRe: 2's compliment Pin
Tim Deveaux4-Jan-01 8:34
Tim Deveaux4-Jan-01 8:34 
QuestionGZIP file compression suggestions? Pin
Josh Knox3-Jan-01 9:30
Josh Knox3-Jan-01 9:30 
AnswerRe: GZIP file compression suggestions? Pin
Jonathan Gilligan3-Jan-01 12:25
Jonathan Gilligan3-Jan-01 12:25 
GeneralGetDeviceCaps, C1_TRANSPARENT, CAPS1 and NEWTRANSPARENT Pin
Marc Richarme3-Jan-01 8:31
Marc Richarme3-Jan-01 8:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.