How is it possible to change the cursor in console applications?
I normally use LoadCursor for windows applications. But is there any way to do it in console applications?
Printable View
How is it possible to change the cursor in console applications?
I normally use LoadCursor for windows applications. But is there any way to do it in console applications?
Perhaps:
Code:HCURSOR hcursor = LoadCursorFromFile( "cursor.cur");
SetCursor( hcursor);
Doesn't work...i already tryed this before.
But i used
Code:HCURSOR Cursor = LoadCursor(NULL, IDC_HAND);
A tip:
If your code fails, post the error. What function fails? What does it return? What does GetLastError return?
isn't the HCURSOR specifically for the mouse cursor? I thought you were looking for terminal cursor. (or 'caret' I think)
Error 0
If LoadCursor returned zero, then it didn't load the cursor.
At any rate, I can't get it to work either. No error but no go.
Do you get the arrow-with-hourglass thingy for a few seconds when it starts up? I wonder what's up with that?
Hmmm? Does anyone else know what's the problem?