flat assembler
Message board for the users of flat assembler.

Index > Windows > user32.inc has missing VK equates

Author
Thread Post new topic Reply to topic
ChrisLeslie



Joined: 04 Jun 2006
Posts: 50
Location: Australia
ChrisLeslie 07 Aug 2006, 03:14
user32.inc does not contain many VK_ equates for leter keys. I had to patch them in to get my application going. Is there a reason for this?

Regards

Chris Leslie
Post 07 Aug 2006, 03:14
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 07 Aug 2006, 04:15
Since you can write just 'A' instead of VK_A, I felt such equates redundant.
Post 07 Aug 2006, 04:15
View user's profile Send private message Visit poster's website Reply with quote
ChrisLeslie



Joined: 04 Jun 2006
Posts: 50
Location: Australia
ChrisLeslie 07 Aug 2006, 04:37
That sounds reasonable. I must confess that I did not even notice that they were just the ASCII codes. Wink

Chris
Post 07 Aug 2006, 04:37
View user's profile Send private message Reply with quote
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 07 Aug 2006, 10:17
You can take without problems to yourself constants from, for example, WINDOWS.INC from delivery MASM. If you do not have anything similar, I can send you a .INC-file on your email.
Post 07 Aug 2006, 10:17
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 07 Aug 2006, 13:00
I thought I could get a list easily from the net, but I stumbled upon this:
http://www.delphirss.com/winapi.html#winapi65 - near end (the name#65 doesn't work :S )
Code:
...
vk_Copy      = $2C not used by keyboards }
vk_Insert    = $2D;
vk_Delete    = $2E;
vk_Help      = $2F;
vk_A thru vk_Z are the same as their ASCII equivalents: 'A' thru 'Z' }
vk_0 thru vk_9 are the same as their ASCII equivalents: '0' thru '9' }
vk_NumPad0   = $60;
vk_NumPad1   = $61;
vk_NumPad2   = $62;
vk_NumPad3   = $63;
vk_NumPad4   = $64;
...
    
Post 07 Aug 2006, 13:00
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.