Click here to Skip to main content
15,915,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: out of memory error Pin
Mike Dimmick20-Jan-05 2:16
Mike Dimmick20-Jan-05 2:16 
GeneralGetKeyState Pin
vidhyas19-Jan-05 21:03
vidhyas19-Jan-05 21:03 
GeneralRe: GetKeyState Pin
Neville Franks19-Jan-05 22:15
Neville Franks19-Jan-05 22:15 
GeneralRe: GetKeyState Pin
vidhyas19-Jan-05 22:19
vidhyas19-Jan-05 22:19 
GeneralRe: GetKeyState Pin
Neville Franks19-Jan-05 22:26
Neville Franks19-Jan-05 22:26 
GeneralRe: GetKeyState Pin
vidhyas19-Jan-05 22:40
vidhyas19-Jan-05 22:40 
GeneralRe: GetKeyState Pin
Neville Franks20-Jan-05 0:40
Neville Franks20-Jan-05 0:40 
GeneralRe: GetKeyState Pin
Anonymous20-Jan-05 2:45
Anonymous20-Jan-05 2:45 
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

Generalcdhtmldialog Pin
lirik19-Jan-05 19:47
lirik19-Jan-05 19:47 
GeneralRe: cdhtmldialog Pin
Neville Franks19-Jan-05 22:33
Neville Franks19-Jan-05 22:33 
GeneralVC7 IDE - Custom Document Editors Pin
peterchen19-Jan-05 19:17
peterchen19-Jan-05 19:17 
QuestionHow to detect the activity of specified device? Pin
ErisonWu19-Jan-05 18:51
ErisonWu19-Jan-05 18:51 
Generaltitle bar Pin
Member 2996919-Jan-05 18:04
Member 2996919-Jan-05 18:04 
GeneralRe: title bar Pin
namaskaaram19-Jan-05 18:19
namaskaaram19-Jan-05 18:19 
GeneralRe: title bar Pin
Member 2996919-Jan-05 20:07
Member 2996919-Jan-05 20:07 
GeneralRe: title bar Pin
toxcct20-Jan-05 2:19
toxcct20-Jan-05 2:19 
GeneralRe: title bar Pin
Garth Watkins19-Jan-05 20:34
Garth Watkins19-Jan-05 20:34 
GeneralRe: title bar Pin
Member 2996919-Jan-05 23:40
Member 2996919-Jan-05 23:40 
GeneralRe: title bar Pin
David Crow20-Jan-05 2:39
David Crow20-Jan-05 2:39 
Questionhow to code app to play internet radio Pin
don7cry19-Jan-05 16:44
don7cry19-Jan-05 16:44 
Generalraster to vector graphics Pin
ninpo19-Jan-05 16:34
ninpo19-Jan-05 16:34 
GeneralFTA Tool Help Pin
XiaoYu19-Jan-05 15:38
XiaoYu19-Jan-05 15:38 
QuestionHow to integrate C++ application with ASP.net web-application? Pin
webdevelopex19-Jan-05 15:34
webdevelopex19-Jan-05 15:34 
AnswerRe: How to integrate C++ application with ASP.net web-application? Pin
basementman20-Jan-05 4:31
basementman20-Jan-05 4:31 
GeneralRename CTreeCtrl item Pin
LiYS19-Jan-05 15:11
LiYS19-Jan-05 15:11 

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.