Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hot to get the handle of the main window? Pin
Abhi Lahare21-Jan-05 0:59
Abhi Lahare21-Jan-05 0:59 
AnswerRe: Hot to get the handle of the main window? Pin
Blake Miller21-Jan-05 8:49
Blake Miller21-Jan-05 8:49 
GeneralRe: Hot to get the handle of the main window? Pin
Vaibhav Sanghavi23-Jan-05 19:50
Vaibhav Sanghavi23-Jan-05 19:50 
GeneralFonts are scaled while scaling metafile Pin
marukas20-Jan-05 23:42
marukas20-Jan-05 23:42 
QuestionNeed help!!! How to create a connection in Network connections in WinXP? Pin
Chuaaico20-Jan-05 23:42
Chuaaico20-Jan-05 23:42 
GeneralHelp wanted with CRecordset Pin
xcavin20-Jan-05 21:15
xcavin20-Jan-05 21:15 
GeneralRe: Help wanted with CRecordset Pin
David Crow21-Jan-05 10:15
David Crow21-Jan-05 10:15 
GeneralGetKeyState Pin
vidhyas20-Jan-05 17:06
vidhyas20-Jan-05 17:06 
Yes , i can understand friend...but this case works out in a single machine..But in Client and Server concept it fails..I use the same GetKeyState() fn to retrieve the keystate...I check for its return value...

getKey = ::GetKeyState(vk);



if(getKey & 0xF000)
printf("%c pressed 0xF000\n",tempbuffer[c]);

else if(getKey & 0x000F)
printf("%c releases 0x000F\n",tempbuffer[c]);

else if(getKey & 0x0001 == 0x0001)
printf("%c Key is toggled\n",tempbuffer[c]);

else if( getKey & 0x8000 == 0x8000)
printf("%c Key is pressed\n",tempbuffer[c]);

else
printf("%c key is neither pressed nor toggled",tempbufferc]);
}

For the above cases

for some of the characters condn. fails and so the message
"Key is neither pressed nor toggled " message gets printed.

What can i do for this ?

Thank u

GeneralRe: GetKeyState Pin
Blake Miller21-Jan-05 8:53
Blake Miller21-Jan-05 8:53 
Generalabout WM_DEVCHANGE notification Pin
gly20-Jan-05 15:57
gly20-Jan-05 15:57 
GeneralWSAAsyncSelect CANNOT post socket event notifications, Plz help... Pin
enoloo_don20-Jan-05 14:48
enoloo_don20-Jan-05 14:48 
QuestionADO with RecordBinding Question ? Pin
Anonymous20-Jan-05 14:43
Anonymous20-Jan-05 14:43 
QuestionHow to detect the activity of specified devices? Pin
ErisonWu20-Jan-05 14:02
ErisonWu20-Jan-05 14:02 
GeneralThe hell of LBN_ERRSPACE Pin
Alfonso Vila20-Jan-05 13:52
Alfonso Vila20-Jan-05 13:52 
GeneralRe: The hell of LBN_ERRSPACE Pin
Shog920-Jan-05 14:34
sitebuilderShog920-Jan-05 14:34 
Generalsystem tray right-click menu Pin
Anonymous20-Jan-05 13:42
Anonymous20-Jan-05 13:42 
GeneralRe: system tray right-click menu Pin
nm_11420-Jan-05 18:01
nm_11420-Jan-05 18:01 
GeneralRe: system tray right-click menu Pin
lillah21-Jan-05 0:03
lillah21-Jan-05 0:03 
GeneralRe: system tray right-click menu Pin
Anonymous21-Jan-05 13:16
Anonymous21-Jan-05 13:16 
GeneralDevelop FTA Tool Help Pin
XiaoYu20-Jan-05 13:41
XiaoYu20-Jan-05 13:41 
Questionhow to get the usb device's disk name,like "H:"? Pin
lowiq20-Jan-05 13:41
lowiq20-Jan-05 13:41 
GeneralCatching Keyboard events Pin
FayezElFar20-Jan-05 11:47
FayezElFar20-Jan-05 11:47 
GeneralRe: Catching Keyboard events Pin
Blake Miller21-Jan-05 8:59
Blake Miller21-Jan-05 8:59 
GeneralNo Updates When Loss Focus Pin
Grahamfff20-Jan-05 10:26
Grahamfff20-Jan-05 10:26 
GeneralRe: No Updates When Loss Focus Pin
Mircea Puiu21-Jan-05 0:24
Mircea Puiu21-Jan-05 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.