how do u??
How do u program it in c++ so that if the user pushes esc the program ends??
What kind of program, what os?
Windows program on, ehm, Windows?
Handle the WM_KEYDOWN message... see msdn.microsoft.com for details. If the user presses esc, call PostQuitMessage or something.
I really recommend you check out the beginners section.
Windows program on, ehm, Windows?
Handle the WM_KEYDOWN message... see msdn.microsoft.com for details. If the user presses esc, call PostQuitMessage or something.
I really recommend you check out the beginners section.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement