Home > Archive > Smartphone Developer Forum > December 2005 > Event Scheduling
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Joseph Geretz 2005-12-06, 7:10 pm |
| What's the best way for me to schedule an event, to occur either at fixed
intervals, or at a specific time?
A) Should I have my program running in the background, waiting for the
specific time or interval?
Or B), is there a way to schedule my program with the OS so that the OS will
launch my program at a specific time or interval?
I'm guessing that option B will be more robust since with option A, the user
might terminate my program. Or is there a way to engineer this as a service
which will be running constantly?
Thanks for any advice which you can offer.
Joseph Geretz
| |
| John Spaith [MS] 2005-12-06, 7:10 pm |
| You're correct option B is the much safer option. Look up CeRunAppAtTime
API. I think there's some quirks with this API (I've never written code
using it so I'm not %100) so you should read up on the docs and read up on
the newsgroups before diving in.
--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation
Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.
"Joseph Geretz" <jgeretz@nospam.com> wrote in message
news:eNFvI6m%23FHA.2264@tk2msftngp13.phx.gbl...
> What's the best way for me to schedule an event, to occur either at fixed
> intervals, or at a specific time?
>
> A) Should I have my program running in the background, waiting for the
> specific time or interval?
>
> Or B), is there a way to schedule my program with the OS so that the OS
> will launch my program at a specific time or interval?
>
> I'm guessing that option B will be more robust since with option A, the
> user might terminate my program. Or is there a way to engineer this as a
> service which will be running constantly?
>
> Thanks for any advice which you can offer.
>
> Joseph Geretz
>
>
>
|
|
|
|
|