Thanks Wayne. I have found both of them and spent many hours browsing and experimenting. Another thing I am trying to do is to change the location of the next output to the console. Again, I can't find out where to look to do this. In BASIC, I would simply use a LOCATE command. Here I have tried resetting the dwCursorPosition attribute. GetConsoleScreenBufferInfoEx seems to read the current location OK but after changing the attribute and doing a SetConsoleScreenBuffferInfoEx the output just goes to the next location rather than the one I was trying to use.
I assume that the cursor position does not (automatically) define where the next character of output goes. Note: I am using cout to do the writing. Any thoughts.
Oh and if you could guide me in the documentation as to where I can find the instructions on how to change the foreground and background colors, I will look it up and use the more "professional" approach. :-)