Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontypedef enum Pin
feanorgem22-Sep-08 11:30
feanorgem22-Sep-08 11:30 
AnswerRe: typedef enum Pin
Saurabh.Garg22-Sep-08 15:01
Saurabh.Garg22-Sep-08 15:01 
GeneralRe: typedef enum Pin
feanorgem22-Sep-08 17:55
feanorgem22-Sep-08 17:55 
QuestionVC++ _ Application Terminated in unusual way Pin
balu1234522-Sep-08 9:17
balu1234522-Sep-08 9:17 
AnswerRe: VC++ _ Application Terminated in unusual way Pin
Saurabh.Garg22-Sep-08 15:04
Saurabh.Garg22-Sep-08 15:04 
AnswerRe: VC++ _ Application Terminated in unusual way Pin
Hamid_RT22-Sep-08 18:55
Hamid_RT22-Sep-08 18:55 
GeneralRe: VC++ _ Application Terminated in unusual way Pin
balu1234522-Sep-08 19:10
balu1234522-Sep-08 19:10 
GeneralRe: VC++ _ Application Terminated in unusual way Pin
Hamid_RT22-Sep-08 19:36
Hamid_RT22-Sep-08 19:36 
GeneralRe: VC++ _ Application Terminated in unusual way Pin
balu1234514-Oct-08 7:13
balu1234514-Oct-08 7:13 
GeneralRe: VC++ _ Application Terminated in unusual way Pin
Hamid_RT14-Oct-08 8:20
Hamid_RT14-Oct-08 8:20 
QuestionConverting virtual key codes to ASCII Pin
hxhl9522-Sep-08 7:26
hxhl9522-Sep-08 7:26 
AnswerRe: Converting virtual key codes to ASCII Pin
James R. Twine22-Sep-08 7:38
James R. Twine22-Sep-08 7:38 
GeneralRe: Converting virtual key codes to ASCII [modified] Pin
hxhl9522-Sep-08 18:30
hxhl9522-Sep-08 18:30 
AnswerRe: Converting virtual key codes to ASCII Pin
Cedric Moonen22-Sep-08 7:39
Cedric Moonen22-Sep-08 7:39 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl9522-Sep-08 18:26
hxhl9522-Sep-08 18:26 
AnswerRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian22-Sep-08 21:04
professionalRajesh R Subramanian22-Sep-08 21:04 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl9523-Sep-08 18:39
hxhl9523-Sep-08 18:39 
GeneralRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian24-Sep-08 20:02
professionalRajesh R Subramanian24-Sep-08 20:02 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl9525-Sep-08 19:10
hxhl9525-Sep-08 19:10 
THANK YOU SO MUCH Big Grin | :-D

My app is running flawlessly now. I've tested every single key on the keyboard and it works fine. (well, except for the non-character keys).

I only have one question left. What happens in my program when I press one of the non-character keys? What will the output be? Here is my code:
static unsigned char keystate[256];
if (GetKeyboardState(keystate) == FALSE) return CallNextHookEx(hKeyboardHook, nCode, wParam, lParam);
ToAscii(logchar,NULL,keystate,(unsigned short *)&logchar,0);


I'm just wondering how it converts a non-character key to ASCII Poke tongue | ;-P

Thanks again for your help. I appreciate it very much. Big Grin | :-D
QuestionRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian25-Sep-08 20:53
professionalRajesh R Subramanian25-Sep-08 20:53 
AnswerRe: Converting virtual key codes to ASCII Pin
hxhl9526-Sep-08 7:04
hxhl9526-Sep-08 7:04 
AnswerRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian27-Sep-08 19:15
professionalRajesh R Subramanian27-Sep-08 19:15 
GeneralRe: Converting virtual key codes to ASCII Pin
Rajesh R Subramanian30-Sep-08 20:21
professionalRajesh R Subramanian30-Sep-08 20:21 
GeneralRe: Converting virtual key codes to ASCII Pin
hxhl951-Oct-08 6:30
hxhl951-Oct-08 6:30 
GeneralRe: Converting virtual key codes to ASCII Pin
ShilpiP26-Jun-09 1:08
ShilpiP26-Jun-09 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.