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?
This is a discussion on Changing console applications cursor? within the C++ Programming forums, part of the General Programming Boards category; How is it possible to change the cursor in console applications? I normally use LoadCursor for windows applications. But is ...
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?
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
isn't the HCURSOR specifically for the mouse cursor? I thought you were looking for terminal cursor. (or 'caret' I think)
Last edited by FillYourBrain; 11-07-2008 at 01:32 PM.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
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?