position cursor in the console

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
I need to print in unmaaged code folowing line into console.
#blablabla#.
Where # should be rotating line(first |then/ then - then\).
How would I do that?
Thanks a lot,
 
If the message was at the beginning of a line, then you could print the text
followed by \r to return your "printing position" to the start of the line,
then keep printing the same thing over and over (changing the first
character). I think that's the easiest way.

If you need more explicit positioning, under Visual C++ you need to use the
Win32 console functions, which can be found in MSDN.

Kevin.
 
Back
Top