3 months ago me and my classmates played with visual c++ 6.0. We made a infinite loop of numbers that kinda looks like the matrix thing. We changed the font of the cmd of c++ to green. Now the problem is I can't turn it back to normal. I tried the Tools -> options thing i found in the internet but it didn't work. Does anyone know how I can turn it back to normal? thanks. BTW this is the code we used to make the font green.

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 2)

Recommended Answers

All 3 Replies

In case you do not understand what was in the link I gave you,this statement should do the job: produces black text on a white background.

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);

Sorry, I didnt put that in code tags...

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.