Click here to Skip to main content
15,898,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
Richard MacCutchan28-Dec-19 6:29
mveRichard MacCutchan28-Dec-19 6:29 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
EjireK28-Dec-19 12:18
EjireK28-Dec-19 12:18 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
leon de boer28-Dec-19 14:53
leon de boer28-Dec-19 14:53 
GeneralRe: Abstract Factory Design/Linked List Problem Pin
Richard MacCutchan28-Dec-19 21:49
mveRichard MacCutchan28-Dec-19 21:49 
AnswerRe: Abstract Factory Design/Linked List Problem Pin
Stefan_Lang6-Jan-20 0:22
Stefan_Lang6-Jan-20 0:22 
Questionqueues to find minimum time to serve all. Pin
Jiopik27-Dec-19 19:01
Jiopik27-Dec-19 19:01 
AnswerRe: queues to find minimum time to serve all. Pin
Richard MacCutchan27-Dec-19 22:01
mveRichard MacCutchan27-Dec-19 22:01 
AnswerRe: queues to find minimum time to serve all. Pin
leon de boer28-Dec-19 14:40
leon de boer28-Dec-19 14:40 
QuestionHow to check if USB filter driver be installed by MFC? Pin
yufengchien26-Dec-19 22:19
yufengchien26-Dec-19 22:19 
AnswerRe: How to check if USB filter driver be installed by MFC? Pin
Richard MacCutchan26-Dec-19 23:44
mveRichard MacCutchan26-Dec-19 23:44 
QuestionKnight move, right direction, dynamic programming to get the maximum cost path from top left to right bottom. Pin
Jiopik25-Dec-19 0:25
Jiopik25-Dec-19 0:25 
AnswerRe: Knight move, right direction, dynamic programming to get the maximum cost path from top left to right bottom. Pin
Richard MacCutchan26-Dec-19 4:25
mveRichard MacCutchan26-Dec-19 4:25 
QuestionIRichEditOle::InsertObject shifts text one byte Pin
ForNow21-Dec-19 18:18
ForNow21-Dec-19 18:18 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan21-Dec-19 22:07
mveRichard MacCutchan21-Dec-19 22:07 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
ForNow22-Dec-19 5:09
ForNow22-Dec-19 5:09 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan22-Dec-19 22:20
mveRichard MacCutchan22-Dec-19 22:20 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
ForNow23-Dec-19 1:04
ForNow23-Dec-19 1:04 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan23-Dec-19 2:03
mveRichard MacCutchan23-Dec-19 2:03 
QuestionCASE SOLVED AND CLOSED cout and cerr execute out of coded sequence Pin
Vaclav_21-Dec-19 10:13
Vaclav_21-Dec-19 10:13 
AnswerRe: SOLVED cout and cerr execute out of coded sequence Pin
Richard MacCutchan21-Dec-19 21:32
mveRichard MacCutchan21-Dec-19 21:32 
AnswerRe: CASE SOLVED AND CLOSED cout and cerr execute out of coded sequence Pin
Richard MacCutchan22-Dec-19 22:55
mveRichard MacCutchan22-Dec-19 22:55 
QuestionSOLVED CASE CLOSED cout in color and perror - revisited Pin
Vaclav_20-Dec-19 4:46
Vaclav_20-Dec-19 4:46 
SOLVED CASE CLOSED
Thanks for all the help from the group.
It is much appreciated.

Ask Mrs Google for "Eclipse ANSI" .
The question remains why it works without the 3rd part plug in when the app is crosscompiled.









I hope it will not bother the group if I revisit this , now multiple issue.
1. The attached C++ code DOES NOT execute in expected sequence.
Both perror output in red, which is expected , but out of expected sequence.

2. The setw works as expected.

3. The cout "escape sequence " DOES NOT change color and also outputs the sequence as "control characters".
It works well in crosscomplied code.

The code fails using tools implementing "standard" "hello word" on local machine.

This SAME code works as expected running after the application is crosscompiled for
"remote" machine. And has been working well for few months of development.

As far as I can tell - implementing "control / escape " characters in cout does not require anything special - iostream should work .

C++
	cout << " START test area " << __LINE__ << endl;
	cout << __FUNCTION__ << endl;
	cout << " START test area " << __LINE__ << endl;
	cout << __FUNCTION__ << endl;
	perror("TEST perror ");
	cout << setw(30) << "\033[1;31mbold red text\033[0m\n";
	perror("TEST perror ");
	while(1);

<pre lang="text">
TEST perror : Success             printed in red 
TEST perror : Invalid argument   printed in red 
 START test area 334
main
 START test area 336    
main
     bold red text    shifted , but no color change 


modified 24-Dec-19 10:59am.

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 

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.