|
-
April 30th, 1999, 07:16 AM
#1
Please HELP onchar() problem
Hai ,
I am using onchar() to catch what key is pressed , i need to set one variable if an alphabet is pressed .
In onchar() , the value we got is character code , we can do checking with VK_A ..... VK_Z .. so 27 checking is needed , is there any ohter way like VK_A has HEX value 41 ...VK_Z has 5A so what i did is if( nChar>41 && nChar< 5A) then setting my variable but it is giving error like 'bad suffic format'
i know i am comparing UINT and hex but i don't know how to correct this
please help me.
bye
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|