Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProgram Auto-updating Itself Pin
Jason Hooper22-Jan-02 8:38
Jason Hooper22-Jan-02 8:38 
GeneralRe: Program Auto-updating Itself Pin
Carlos Antollini22-Jan-02 9:00
Carlos Antollini22-Jan-02 9:00 
GeneralRe: Program Auto-updating Itself Pin
Jason Hooper22-Jan-02 9:17
Jason Hooper22-Jan-02 9:17 
GeneralRe: Program Auto-updating Itself Pin
Jason Hooper22-Jan-02 9:22
Jason Hooper22-Jan-02 9:22 
GeneralRe: Program Auto-updating Itself Pin
yarp22-Jan-02 9:42
yarp22-Jan-02 9:42 
Question.make files??? Pin
Kuniva22-Jan-02 8:12
Kuniva22-Jan-02 8:12 
AnswerRe: .make files??? Pin
borland22-Jan-02 17:05
borland22-Jan-02 17:05 
GeneralSendInput Pin
Mark Donkers22-Jan-02 8:14
Mark Donkers22-Jan-02 8:14 
Does anyone have a solid example on how use SendInput(). All the examples that are out there, are in VB.

Also, see my memcpy() statements. Am I copying a structure into a structure of a structure properly?

<br />
    BOOL fNumLockState;<br />
    BYTE keys[255];<br />
    INPUT inp[2];<br />
    KEYBDINPUT kbi;<br />
<br />
<br />
    GetKeyboardState( keys );<br />
    <br />
    // NumLock handling:<br />
    fNumLockState = keys[VK_NUMLOCK];<br />
    if( !fNumLockState ) // Turn numlock on<br />
    {    <br />
        kbi.wVk         = VK_NUMLOCK;<br />
        kbi.wScan       = 0;  // not needed<br />
        kbi.dwFlags     = 0;  // press the key down<br />
        kbi.time        = 0;  // use the default<br />
        kbi.dwExtraInfo = 0;  // not needed<br />
        <br />
        memcpy( &(inp[0].ki), &kbi, sizeof(kbi) );<br />
        inp[0].type     = INPUT_KEYBOARD;<br />
        <br />
        kbi.dwFlags     = KEYEVENTF_KEYUP;      // release  the key down<br />
        <br />
        memcpy( &(inp[1].ki), &kbi, sizeof(kbi) );<br />
        inp[1].type     = INPUT_KEYBOARD;<br />
        <br />
        if( SendInput( 2, inp, sizeof(inp) ) != 2 )<br />
        {<br />
            TRACE(_T("SendInput error [%d]"), GetLastError() );<br />
        }                <br />
    }                <br />



Marcus

Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
GeneralRe: SendInput Pin
Mark Donkers22-Jan-02 10:48
Mark Donkers22-Jan-02 10:48 
Generalgetting a machine's ip address Pin
Kuniva22-Jan-02 5:45
Kuniva22-Jan-02 5:45 
GeneralRe: getting a machine's ip address Pin
Jon Sagara22-Jan-02 6:00
Jon Sagara22-Jan-02 6:00 
GeneralRe: getting a machine's ip address Pin
Vladimir Georgiev22-Jan-02 6:01
Vladimir Georgiev22-Jan-02 6:01 
GeneralRe: getting a machine's ip address Pin
Kuniva22-Jan-02 6:45
Kuniva22-Jan-02 6:45 
GeneralRe: getting a machine's ip address Pin
Mark Donkers22-Jan-02 8:36
Mark Donkers22-Jan-02 8:36 
GeneralRe: getting a machine's ip address Pin
22-Jan-02 11:28
suss22-Jan-02 11:28 
GeneralRe: getting a machine's ip address Pin
borland22-Jan-02 11:54
borland22-Jan-02 11:54 
GeneralMP3 player Pin
bh_bad200222-Jan-02 5:28
bh_bad200222-Jan-02 5:28 
GeneralRe: MP3 player Pin
Christian Graus22-Jan-02 9:59
protectorChristian Graus22-Jan-02 9:59 
GeneralAn easy one for any seasoned pro.... Pin
Paul Barrass22-Jan-02 5:08
Paul Barrass22-Jan-02 5:08 
GeneralRe: An easy one for any seasoned pro.... Pin
Jamie Hale22-Jan-02 5:38
Jamie Hale22-Jan-02 5:38 
GeneralRe: An easy one for any seasoned pro.... Pin
Paul Barrass22-Jan-02 22:17
Paul Barrass22-Jan-02 22:17 
GeneralPWALK: DLL Memory Checking Pin
Jim99922-Jan-02 4:03
Jim99922-Jan-02 4:03 
GeneralGDI+ & CMYK TIFFs Pin
Andy Brace22-Jan-02 3:22
Andy Brace22-Jan-02 3:22 
QuestionHow to same class of FindControls in a Dialog? Pin
22-Jan-02 2:40
suss22-Jan-02 2:40 
AnswerRe: How to same class of FindControls in a Dialog? Pin
22-Jan-02 3:39
suss22-Jan-02 3:39 

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.