Khbit windows CE - Programmer

This is a discussion on Khbit windows CE - Programmer ; Is there an equivalent function of Kbhit (console) for windows CE without using conio.h??...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Khbit windows CE

  1. Khbit windows CE

    Is there an equivalent function of Kbhit (console) for windows CE
    without using conio.h??

  2. Re: Khbit windows CE

    DiegoC wrote:

    > Is there an equivalent function of Kbhit (console) for windows CE
    > without using conio.h??


    I don't know if this works in Windows CE, but it works in NT etc so you
    may try it:

    #define kbhit() (WaitForSingleObject(GetStdHandle(0),0)==WAIT_OBJE CT_0)

    --
    Olof Lagerkvist sm6xmk
    ICQ: 724451 @ssa.se
    Web: http://here.is/olof


+ Reply to Thread