Click here to Skip to main content
15,885,954 members
Articles / Programming Languages / C++

Harnessing the task scheduler

Rate me:
Please Sign up or sign in to vote.
4.70/5 (20 votes)
28 Aug 2013CPOL9 min read 118.7K   3.4K   83  
Using the Task Scheduler interface in applications can be tricky, as it requires a detailed knowledge of the COM technology. This article presents a practical solution to this problem, based on simplifying communications with the interface.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by MYTASKDEMO.RC
//
#define IDR_MAINFRAME					128
#define IDM_ABOUTBOX					0x0010
#define IDD_ABOUTBOX					100
#define IDS_ABOUTBOX					101
#define IDD_MYTASKDEMO_DIALOG				102
#define IDC_PROGRAM                     1000
#define IDC_PARAMETERS                  1001
#define IDC_PATH                        1002
#define IDC_COMMENT                     1003
#define IDC_BROWSE_PROGRAM              1004
#define IDC_BROWSE_PATH                 1005
#define IDC_ADD_TASK                    1006
#define IDC_DELETE_TASK                 1007
#define IDC_ONCE                        1009
#define IDC_DAILY                       1010
#define IDC_WEEKLY                      1011
#define IDC_MONTHLY                     1012
#define IDC_USERNAME                    1017
#define IDC_PASSWORD                    1018
#define IDC_TASKNAME                    1019
#define IDC_REPLACETASK                 1020
#define IDC_STARTDATE                   1021
#define IDC_STARTTIME                   1022
#define IDC_ENDDATE                     1023


// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS

#define _APS_NEXT_RESOURCE_VALUE	129
#define _APS_NEXT_CONTROL_VALUE		1030
#define _APS_NEXT_SYMED_VALUE		101
#define _APS_NEXT_COMMAND_VALUE		32771
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Publisher
Poland Poland
Software Developer's Journal (formerly Software 2.0) is a magazine for professional programmers and developers publishing news from the software world and practical articles presenting very interesting ready programming solutions. To read more

Comments and Discussions