开发者

kbhit equivalent for Windows CE

开发者 https://www.devze.com 2023-02-12 09:32 出处:网络
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 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

0

精彩评论

暂无评论...
验证码 换一张
取 消