PDA

View Full Version : console program


jerkjames
Jun3-07, 09:23 AM
I want to do this (HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

if ( hConsole != INVALID_HANDLE_VALUE )
{
// do stuff...
...
}
) In visual c++, I generally use gotoxy() to position the c (http://www.seopromolinks.com/business_continuityplan.asp)ursor in a console program. Help needed

out of whack
Jun3-07, 11:38 AM
There is no "gotoxy" function either in the standard library or the Windows library. This was a Borland library function from the days of DOS that was ported to a few platforms. Use SetCursorPosition instead:

http://msdn2.microsoft.com/en-us/library/ms682073.aspx

More Win32 console functions are listed here:

http://msdn2.microsoft.com/en-us/library/ms686025.aspx