Hi, in my MFC dialog app i have a message, saying "Press any key to go on" I wanna make it in the way, that when the user presses any key it must do something(i have already done that).
So, how can i check if any key is pressed using GetKeyboardState() or some other way you can recommend me?
Thanks.

Wait... are you writing a GUI application or a console application?

To me, MFC Dialog == GUI --> put a "next" button on your form, and don't mess with GetKeyboardState().

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.