kbhit equivalent for Windows CE
I know this question has been asked before and I have tried searching on Google but I don't seem to be able to find a decent answer to this.
I want a 开发者_运维问答console application I am writing to exit when a user presses a button. It's written in C++ and will be deployed on Windows CE6.
Currently the same code, on XP, uses this to perform actions until the keyboard is hit
//App entry
while (!_kbhit()) { /* Awesome code goes here */ }
//App exits here
Can anyone help me :)
Have you tried getchar()?
It may be necessary to direct standard input/output to the console using SetStdioPathW().
-PaulH
精彩评论