What does this statement mean

What does these statements mean?

case 0x50:  // How is this value generated?
      Pause(hwnd);
break;
khawaibAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AxterCommented:
Hi khawaib,
> case 0x50:  // How is this value generated?
It's a hex value that translates into decimal number 80.
case 80: //Same as 0x50

David Maisonave (Axter)
Cheers!
0
khawaibAuthor Commented:
How is this value generated?
0
AxterCommented:
>>How is this value generated?
At compile time, the compiler converts it to a decimal number.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

khawaibAuthor Commented:
case WM_KEYDOWN:
            switch ((int)wParam){
                  case VK_UP:    // Code Here
                  break;
                  case VK_DOWN:    // Code Here
                  break;
                  case VK_LEFT:     // Code Here
                  break;                  
                  case VK_RIGHT:     // Code Here
                  break;
                  case 0x50:
                  Pause(hwnd);
                  break;
            }
            break;
      default:
      ..................
0
khawaibAuthor Commented:
this might clearify it bit more
0
AxterCommented:
>>this might clearify it bit more

What exactly are you trying to clearify?

0
khawaibAuthor Commented:
That this value is generated in keyboard events, I understand Key Up, down etc are generated when these keys are pressed, but what generates 0x50?
0
AxterCommented:
>> but what generates 0x50?

Where did you get this number from?
0
khawaibAuthor Commented:
Thats what I cannot see anywhere - I thougth may be some one else have accross something like this.
May be some one know some key which can generate this value?
0
AlexFMCommented:
From winuser.h:

* VK_A - VK_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A)

So, you need to find 0x50 in ASCII table, this is 'P'. Program author could save your time, writing:

case (int)'P':
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
khawaibAuthor Commented:
It is P key. thnx AlexFM
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.