-
using CursorVisible
Hi. I am trying to make the cursor in the console window disapear. I looked at the msdn reference, but I cannot get it to work. This is what I am doing:
Code:
#include <iostream>
#include <conio.h>
#include <windows.h>
using namespace std;
int main()
{
Console::CursorVisible = false;
return 0;
}
theres more code in there, but I omitted everything that has nothing to do with why I can't use CursorVisible.
I tried using namespace System; as they did in the msdn reference, but that didn't work either. I know I must be doing something blatantly stupid, so thanks for any help.
Your Friend,
Travis
-
You are looking at .NET code or something. To keep it strictly down to C++ and the WinAPI, you might check out:
::SetConsoleCursorInfo(..)
-
thank you very much! I found that function, and it works great!