|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
VS6 Keystroke Detection
Hi all,
I'm having a little trouble at Uni. I need to know how to detect keystrokes and return their ASCII values. Specifically, I need the functions and the libraries to do this. Thnx for your help ![]() Brent |
|
#2
|
||||
|
||||
|
If you're writing a DOS console program, use the getch() function:
Code:
int ch;
while (1) {
ch = getch();
printf("Ascii value is %d\n", ch);
}
Hope this helps! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > VS6 Keystroke Detection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|