Please how can I get a character if a key is press on a keyboard in c++ using visual studio. for example if s or S is press, the character pressed should be output in a message box.
Printable View
Please how can I get a character if a key is press on a keyboard in c++ using visual studio. for example if s or S is press, the character pressed should be output in a message box.
Is this a console, WIN32, MFC, other program?
Please am working on window form application
Windows Forms doesn't sound like C++ at all. It sounds like C#, or perhaps the .NET based C++/CLI. If it is one of those, I can move the thread.
yes please