Thread: using CursorVisible

  1. #1
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138

    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

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    You are looking at .NET code or something. To keep it strictly down to C++ and the WinAPI, you might check out:

    ::SetConsoleCursorInfo(..)

  3. #3
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138
    thank you very much! I found that function, and it works great!

Popular pages Recent additions subscribe to a feed