Solved

Keboard Hook Dll problem urgent

Posted on 2003-11-26
9
238 Views
Last Modified: 2010-04-17
I have done a keyboard hook and in my callback function i have to check for
each character

if (wParam >= VK_NUMPAD0 && wParam <= VK_NUMPAD9)
then it is checking correctly for numeric keypad nos

but if i want to check for

if (wParam ==VK_A)
then it is giving an error
undeclared indentifier vk_A
but i havent declared for vk_numpad0 but it is working
i appreciate somebody can write a funciton like

switch (wParam)
                              {
case VK_1:
      MessageBox(NULL, "VK_1", "testing", MB_OK ) ;
      break;
case VK_2:
      MessageBox(NULL, "VK_2", "testing", MB_OK ) ;
      break;
case VK_3:
      MessageBox(NULL, "VK_3", "testing", MB_OK ) ;
      break;

where i can pop up the message while testing the application.

Thanks in advance

 
0
Comment
Question by:vimalpercy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
9 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 100 total points
ID: 9823998
From Winuser.h:

VK_0 - VK_9 are the same as ASCII '0' - '9' (0x30 - 0x39)
0x40 : unassigned
VK_A - VK_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A)

So, instead of VK_1 use '1' etc.
0
 

Author Comment

by:vimalpercy
ID: 9830178
Hai Alex
  I got the answer from codeguru and so i cant award you the marks.
 Any way thanks for the answer

It is like this

 If (Wparm= 'A')
{do some process}
else  if (Wparm= 'B')
{do some process}

This is the accepted answer
0
 

Author Comment

by:vimalpercy
ID: 10318982
i want to delete this question and want a refund of my points
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 48

Expert Comment

by:AlexFM
ID: 10319420
It is not 100% correct to write "I found the same answer" 20 hours after getting the answer in EE. I have no objections but I hope this is not your usual way to ask questions.
0
 

Author Comment

by:vimalpercy
ID: 10329393
I am sorry Alex ,i am very low in points and i guarantee this is not the way i ask question.
I have asked so many questions in this forum but all are open for still i dont have the answer.
Only for this one i had the answer but i got the answer immidietly from codeproject.
so  sorry for this and thank you very much for your reply.

Thanks and regards
vimal
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 10329722
No problem :-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question