none
Timer fires right away without delay -- under WinCe6 (no window application, in driver). RRS feed

  • Question

  • CE6 driver without window handle.

    any idea of this timer?

    It fires right away without delay.

    myclass::foo ()

    {

       myTimer = SetTimer(NULL, 10, 5000, timerCallBack());

       RETAILMSG(SHOWRETAIL, (L"[] killtimer:%d timer %d\r\n", res,    myTimer));

    }

     

    It fires 3 ticks after I created it.

    TIMERPROC timerCallBack(void);

    TIMERPROC myclass::timerCallBack(void)

    {

        RETAILMSG(SHOWRETAIL, (L"[ ] timer fired %d:\r\n", GetTickCount()));

        return 0; //compiler asked for a return value.

    }


    • Edited by MPC860 Thursday, December 13, 2012 5:37 PM
    Thursday, December 13, 2012 5:32 PM

All replies