Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSOLVED CASE CLOSED cout in color and perror - revisited Pin
Vaclav_20-Dec-19 4:46
Vaclav_20-Dec-19 4:46 
AnswerRe: cout in color and perror - revisited Pin
leon de boer20-Dec-19 5:01
leon de boer20-Dec-19 5:01 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_20-Dec-19 5:48
Vaclav_20-Dec-19 5:48 
AnswerRe: cout in color and perror - revisited Pin
Richard MacCutchan20-Dec-19 6:07
mveRichard MacCutchan20-Dec-19 6:07 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_21-Dec-19 3:10
Vaclav_21-Dec-19 3:10 
GeneralRe: cout in color and perror - revisited Pin
Richard MacCutchan21-Dec-19 3:34
mveRichard MacCutchan21-Dec-19 3:34 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_21-Dec-19 9:05
Vaclav_21-Dec-19 9:05 
GeneralRe: cout in color and perror - revisited Pin
Richard MacCutchan21-Dec-19 21:25
mveRichard MacCutchan21-Dec-19 21:25 
Taking your code above and running it produces the following output:
C:\Users\rjmac\Documents\Code\C++>Test
Function: DoTest
 START test area 17
TEST perror : No error               --> in normal black
TEST perror : No error               --> in bold red

TEST perror : Input/output error     --> in bold red

HELLO!                               --> in green
red text                             --> everything from here in normal red
                            Hello World
Bluetooth client
 START test area 36
DoTest

Which does not match with what you have produced. I can only conclude that there is something else going on in your system, or the actual code you run is different, that you are not telling us about.
QuestionHow to close file in C++? Pin
Vaclav_19-Dec-19 17:13
Vaclav_19-Dec-19 17:13 
QuestionRe: How to close file in C++? Pin
CPallini19-Dec-19 21:35
mveCPallini19-Dec-19 21:35 
AnswerRe: How to close file in C++? Pin
Stefan_Lang19-Dec-19 21:59
Stefan_Lang19-Dec-19 21:59 
AnswerRe: How to close file in C++? Pin
Vaclav_20-Dec-19 4:51
Vaclav_20-Dec-19 4:51 
AnswerRe: How to close file in C++? Pin
Richard MacCutchan19-Dec-19 21:56
mveRichard MacCutchan19-Dec-19 21:56 
QuestionDo "setw(offset) " BEFORE cout ? Pin
Vaclav_18-Dec-19 4:22
Vaclav_18-Dec-19 4:22 
AnswerRe: Do "setw(offset) " BEFORE cout ? Pin
Richard MacCutchan18-Dec-19 4:56
mveRichard MacCutchan18-Dec-19 4:56 
AnswerRe: Do "setw(offset) " BEFORE cout ? Pin
leon de boer18-Dec-19 5:19
leon de boer18-Dec-19 5:19 
GeneralRe: Do "setw(offset) " BEFORE cout ? Pin
Vaclav_19-Dec-19 17:26
Vaclav_19-Dec-19 17:26 
GeneralRe: Do "setw(offset) " BEFORE cout ? Pin
Richard MacCutchan19-Dec-19 21:50
mveRichard MacCutchan19-Dec-19 21:50 
AnswerRe: Do "setw(offset) " BEFORE cout ? Pin
CPallini18-Dec-19 10:43
mveCPallini18-Dec-19 10:43 
GeneralRe: Do "setw(offset) " BEFORE cout ? Pin
Vaclav_19-Dec-19 17:14
Vaclav_19-Dec-19 17:14 
QuestionLoadString Pin
Member 1450258316-Dec-19 23:36
Member 1450258316-Dec-19 23:36 
AnswerRe: LoadString Pin
Daniel Pfeffer16-Dec-19 23:44
professionalDaniel Pfeffer16-Dec-19 23:44 
AnswerRe: LoadString Pin
Richard MacCutchan16-Dec-19 23:47
mveRichard MacCutchan16-Dec-19 23:47 
QuestionLoadImage Failure Pin
ForNow15-Dec-19 14:17
ForNow15-Dec-19 14:17 
AnswerRe: LoadImage Failure Pin
leon de boer15-Dec-19 20:30
leon de boer15-Dec-19 20:30 

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.