First problem is that I can't get rid of the cursor in my win32 console application.
I tried this and it is not working:
What is wrong with my code?
hStdout = GetStdHandle (STD_OUTPUT_HANDLE);
cci.bVisible = FALSE;
SetConsoleCursorInfo (hStdout, &cci);
My second problem is with the output (on screen) of my program. In my program I'm using "šèž" characters.
If I have a windowed program then the characters "šèž" are displayed properly but if I have a fullscreen program then these characters become "£ß¤". How to get rid of this problem? Is the UNICODE the solution, if it is how to use it?
And the third problem is with virtual keys.
For left and right arrow I use VK_LEFT and VK_RIGHT. I tried to use a key 'f' or any other key like this: case 'f': ..., but it is not working. Why? And I want to have a shortcut ALT+F. How to do this with virtual keys?
Here's the code:
I'm using VC++ 6.0 on Win98. Any help would be appreciated.
DWORD dwRead = 0;
if ( ReadConsoleInput(hInput, &ir, 1, &dwRead)
&& (ir.EventType == KEY_EVENT)
&& (ir.Event.KeyEvent.bKeyDown) )
case 'f': // this is not working, why?
case VK_LEFT: // this is working
case ALT+F: // this not working too, why?
printf ("Not working!");