locked
What's wrong with my timeSetEvent() call RRS feed

  • Question

  • Hello all,

    Could anybody show me how to use timeSetEvent() in pocket pc 2003 se envrionment?  I tried the following call and expected my timerCB() function would be called every 5 seconds. But when I debug my program in emulator, I found timerCB will be called with a very small period (much less than 5s).

    timeSetEvent(5000,50,timerCb,0,TIME_PERIODIC | TIME_CALLBACK_FUNCTION);

    Would you help me to solve this problem? Thanks in advance.

    Monday, January 23, 2006 5:08 AM

Answers

  • Hello,

    Did you by any chance missed getting id from the timeSetEvent and checking it in the timerCb function?

    timeSetEvent function returns a non-zero id on success and this id is passed in the timerCb function.

    -Thanks,

    Mohit

    Wednesday, February 15, 2006 3:52 PM

All replies

  • Hello,

    Did you by any chance missed getting id from the timeSetEvent and checking it in the timerCb function?

    timeSetEvent function returns a non-zero id on success and this id is passed in the timerCb function.

    -Thanks,

    Mohit

    Wednesday, February 15, 2006 3:52 PM
  • Thank you, Mohit!
    Tuesday, May 23, 2006 3:20 AM
  • The best reply to a query should be marked as asnwered

    Thanks

    Srikanth

    Monday, June 26, 2006 9:32 AM