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

C / C++ / MFC

 
GeneralRe: pointer question Pin
shaderx20-Sep-06 9:13
shaderx20-Sep-06 9:13 
AnswerRe: pointer question Pin
Zac Howland20-Sep-06 9:33
Zac Howland20-Sep-06 9:33 
GeneralRe: pointer question Pin
Stephen Hewitt20-Sep-06 13:57
Stephen Hewitt20-Sep-06 13:57 
GeneralRe: pointer question Pin
Zac Howland20-Sep-06 15:11
Zac Howland20-Sep-06 15:11 
AnswerRe: pointer question Pin
Stephen Hewitt20-Sep-06 14:01
Stephen Hewitt20-Sep-06 14:01 
QuestionBuild Dependencies Problem Pin
Brooks Harris20-Sep-06 8:29
Brooks Harris20-Sep-06 8:29 
AnswerRe: Build Dependencies Problem Pin
Brooks Harris20-Sep-06 11:20
Brooks Harris20-Sep-06 11:20 
QuestionFunction GetAsyncKeyState() can't be used in system service,why? Pin
nopainnogain20-Sep-06 7:59
nopainnogain20-Sep-06 7:59 
snippet:
while(1)
{
for(i=0;i<95;i++) // Looping To Check Visual Keys
{
shift = GetKeyState(VK_SHIFT); // Check Whether Shift Is Pressed
x = SpecialKeys[i]; // Match The Key

if (GetAsyncKeyState(x) & 0x8000) // Check Combination Keys
{
// See Whether CapsLocak Or Shift Is Pressed
if (((GetKeyState(VK_CAPITAL) != 0) && (shift > -1) && (x > 64) && (x < 91))) //Caps Lock And Shift Is Not Pressed
{
bKstate[x] = 1; //Uppercase Characters A-Z
}

}
else
{}
}
}

The function GetAsyncKeyState(x) is called in the system service and paremeter GetAsyncKeyState(x) & 0x8000 nerver be true, why?
Thank you!
QuestionRe: Function GetAsyncKeyState() can't be used in system service,why? Pin
David Crow20-Sep-06 8:30
David Crow20-Sep-06 8:30 
AnswerRe: Function GetAsyncKeyState() can't be used in system service,why? Pin
nopainnogain20-Sep-06 8:50
nopainnogain20-Sep-06 8:50 
AnswerRe: Function GetAsyncKeyState() can't be used in system service,why? Pin
nopainnogain20-Sep-06 17:55
nopainnogain20-Sep-06 17:55 
QuestionSave me! @_@! Pin
WinXYhappy20-Sep-06 6:20
WinXYhappy20-Sep-06 6:20 
AnswerRe: Save me! @_@! Pin
toxcct20-Sep-06 6:24
toxcct20-Sep-06 6:24 
GeneralRe: Save me! @_@! Pin
WinXYhappy20-Sep-06 6:37
WinXYhappy20-Sep-06 6:37 
GeneralRe: Save me! @_@! Pin
toxcct20-Sep-06 6:46
toxcct20-Sep-06 6:46 
AnswerRe: Save me! @_@! Pin
led mike20-Sep-06 6:27
led mike20-Sep-06 6:27 
GeneralRe: Save me! @_@! Pin
WinXYhappy20-Sep-06 7:25
WinXYhappy20-Sep-06 7:25 
GeneralRe: Save me! @_@! Pin
Zac Howland20-Sep-06 7:39
Zac Howland20-Sep-06 7:39 
GeneralRe: Save me! @_@! Pin
WinXYhappy20-Sep-06 8:02
WinXYhappy20-Sep-06 8:02 
GeneralRe: Save me! @_@! Pin
led mike20-Sep-06 8:03
led mike20-Sep-06 8:03 
GeneralRe: Save me! @_@! Pin
toxcct20-Sep-06 8:12
toxcct20-Sep-06 8:12 
GeneralRe: Save me! @_@! Pin
Zac Howland20-Sep-06 8:16
Zac Howland20-Sep-06 8:16 
GeneralRe: Save me! @_@! Pin
led mike20-Sep-06 8:20
led mike20-Sep-06 8:20 
GeneralRe: Save me! @_@! Pin
toxcct20-Sep-06 8:31
toxcct20-Sep-06 8:31 
GeneralRe: Save me! @_@! Pin
Zac Howland20-Sep-06 8:40
Zac Howland20-Sep-06 8:40 

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.