Click here to Skip to main content
15,896,063 members

How to build a Service Component to schedule the tasks in MFC?

RedUnited asked:

Open original thread
Hi,
Problem Definition: To create a scheduler that will run a process based on the scheduled time. (I am not supposed to use windows task scheduler)
I have an XML that contains scheduling data.
Process A will run at Time t1.
Process B will run at Time t2.

My Approach:
I am coming up with a Windows Service for this scheduler in MFC. It will read the XML at start up. Run the process at that particular time.

Need inputs for:
1. I want to make sure if my approach is fine to build this scheduler.
2. At the implementation level, do I need to create a thread for Process A to run at time t1?
3. In case I change the scheduling time in XML, can i somehow trigger this windows service to read the XML again without system restart?

Please provide your inputs/concerns regarding the design/implementation or point me to the links that can help me with this.

Regards
Tags: XML, MFC, Service

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900