help with ReadConsoleInput please
Hi. Can someone see what is wrong with this section of code?
Code:
while(1)
{
ReadConsoleInput(hStdin,irInBuf,128, &cNumRead);
if (irInBuf[cNumRead-1].Event.MouseEvent.dwButtonState == FROM_LEFT_1ST_BUTTON_PRESSED || irInBuf[cNumRead-1].Event.MouseEvent.dwButtonState == RIGHTMOST_BUTTON_PRESSED)
break;
}
It works fine on my computer, but when I compile the program on another computer, the program doesn't seem to respond to the mouseclick anymore. Is it a problem of operating systems? (I'm using WinXP, and the other computer is running Win 2000 professional)
Thanks.