C/C++ Positioning Cursor in Visual C++ Console Program - Help Needed

AI Thread Summary
The discussion centers on positioning the cursor in a Visual C++ console application, specifically addressing the absence of the traditional gotoxy() function. Users are advised to utilize the SetCursorPosition function instead, which is part of the Windows API for console applications. Additional resources are provided, including links to Microsoft documentation for SetCursorPosition and other Win32 console functions, offering further guidance on handling console output effectively.
jerkjames
Messages
1
Reaction score
0
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 http://www.seopromolinks.com/business_continuityplan.asp" ursor in a console program. Help needed
 
Last edited by a moderator:
Technology news on Phys.org
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
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.

Similar threads

Replies
0
Views
2K
Replies
5
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
14
Views
34K
Replies
86
Views
12K
Replies
2
Views
4K
Back
Top