Solved

Keboard Hook Dll problem urgent

Posted on 2003-11-26
9
239 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

621 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