using CursorVisible

This is a discussion on using CursorVisible within the C++ Programming forums, part of the General Programming Boards category; Hi. I am trying to make the cursor in the console window disapear. I looked at the msdn reference, but ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21