Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Sun Jul 27, 2008 1:41 am Post subject: [C++]Ending line with WriteConsole? |
|
|
I am making a new trainer and it will be console based trainer, and I need to know a few things about WriteConsole I am not using cout. I DID look up MSDN and didn't solve my problem.
When I do:
| Code: | | WriteConsole(handle, " ", 80, &dwBytesWritten, NULL); |
I have to do 80 spaces to make it go to the next line if, is there a way to end the line. Also is this the correct way to change the color:
| Code: | SetConsoleTextAttribute(handle, FOREGROUND_GREEN);
WriteConsole(handle, "line1 ", 80, &dwBytesWritten, NULL);
SetConsoleTextAttribute(handle, FOREGROUND_BLUE);
WriteFile(handle, "line2 ", 80, &dwBytesWritten, NULL); |
_________________
|
|