Click here to Skip to main content
16,006,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionerror using #pragma pack(...) Pin
wookie18230-Aug-05 6:53
wookie18230-Aug-05 6:53 
AnswerRe: error using #pragma pack(...) Pin
Rick York30-Aug-05 14:21
mveRick York30-Aug-05 14:21 
AnswerRe: error using #pragma pack(...) Pin
Jose Lamas Rios30-Aug-05 18:22
Jose Lamas Rios30-Aug-05 18:22 
QuestionRegistering controls using code Pin
Tom Wright30-Aug-05 6:39
Tom Wright30-Aug-05 6:39 
QuestionSendInput Problem Pin
Mohammad A Gdeisat30-Aug-05 6:18
Mohammad A Gdeisat30-Aug-05 6:18 
AnswerRe: SendInput Problem Pin
Rage30-Aug-05 7:05
professionalRage30-Aug-05 7:05 
GeneralRe: SendInput Problem Pin
Mohammad A Gdeisat30-Aug-05 7:51
Mohammad A Gdeisat30-Aug-05 7:51 
AnswerRe: SendInput Problem Pin
Jose Lamas Rios30-Aug-05 8:54
Jose Lamas Rios30-Aug-05 8:54 
Try adding KEYEVENTF_EXTENDEDKEY for VK_MENU and VK_CONTROL. Maybe for VK_DELETE too:
static void SetKeyboardInput(INPUT& input, short key, DWORD dwFlags)
{
   input.type = INPUT_KEYBOARD;
   input.ki.dwExtraInfo = 0;
   input.ki.time = 0;
   input.ki.wScan = 0;
   input.ki.wVk = key;
   input.ki.dwFlags = dwFlags;
}
 
void SendCtrlAltDel()
{
   INPUT inKB[3];
 
   SetKeyboardInput(inKB[0], VK_CONTROL, KEYEVENTF_EXTENDEDKEY);
   SetKeyboardInput(inKB[1], VK_MENU   , KEYEVENTF_EXTENDEDKEY);
   SetKeyboardInput(inKB[2], VK_DELETE , 0);  // Is KEYEVENTF_EXTENDEDKEY needed here too?
 
   SendInput(3, inKB, sizeof(INPUT));
 
   inKB[0].ki.dwFlags |= KEYEVENTF_KEYUP;
   inKB[1].ki.dwFlags |= KEYEVENTF_KEYUP;
   inKB[2].ki.dwFlags |= KEYEVENTF_KEYUP;
 
   SendInput(3, inKB, sizeof(INPUT));
}



--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: SendInput Problem Pin
Mohammad A Gdeisat30-Aug-05 10:22
Mohammad A Gdeisat30-Aug-05 10:22 
GeneralRe: SendInput Problem Pin
Jose Lamas Rios30-Aug-05 18:13
Jose Lamas Rios30-Aug-05 18:13 
QuestionProblem with Chris Mounder grid and KB893803v2 windows uppgrade. Pin
morefalt30-Aug-05 5:29
morefalt30-Aug-05 5:29 
QuestionI created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
ahzhuo30-Aug-05 5:04
ahzhuo30-Aug-05 5:04 
AnswerRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
toxcct30-Aug-05 5:06
toxcct30-Aug-05 5:06 
GeneralRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
ahzhuo30-Aug-05 5:13
ahzhuo30-Aug-05 5:13 
GeneralRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
toxcct30-Aug-05 5:14
toxcct30-Aug-05 5:14 
GeneralRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
toxcct30-Aug-05 5:16
toxcct30-Aug-05 5:16 
GeneralRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
Eytukan30-Aug-05 5:26
Eytukan30-Aug-05 5:26 
GeneralRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
ahzhuo30-Aug-05 5:30
ahzhuo30-Aug-05 5:30 
GeneralRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX30-Aug-05 6:08
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX30-Aug-05 6:08 
AnswerRe: I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^ Pin
John M. Drescher30-Aug-05 17:44
John M. Drescher30-Aug-05 17:44 
QuestionSearch Database Pin
Typheous30-Aug-05 4:34
Typheous30-Aug-05 4:34 
AnswerRe: Search Database Pin
dy1330-Aug-05 8:40
dy1330-Aug-05 8:40 
QuestionHowto Change language manually? Pin
dy1330-Aug-05 4:16
dy1330-Aug-05 4:16 
AnswerRe: Howto Change language manually? Pin
toxcct30-Aug-05 4:32
toxcct30-Aug-05 4:32 
GeneralRe: Howto Change language manually? Pin
dy1330-Aug-05 8:18
dy1330-Aug-05 8:18 

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.