Click here to Skip to main content
15,909,445 members

Comments by RedUnited (Top 5 by date)

RedUnited 4-Dec-13 2:46am View    
"#define RESOURCE_DLL L"<path>\\Provider.dll"

My question is I'm not sure what this DLL has to be? Why is the DLL needed? I tried without specifying any DLL - in the further part of the code, the HANDLER will be NULL since i have not specified any DLL, and the program doesn't behave as expected.

I want to look for particular event IDs from a particular source, get the message details in form of a string.
RedUnited 6-Jun-12 2:14am View    
Thank you for the inputs.
I went through few of the topics in Code Project regarding Scheduler design, all of them are .net related projects.
Following is one sample data from XML I will fetch:
Name: Task1
Exe: task1.exe
Daily: Time:1000(hrs) (OR)
Weekly: Time:1010(hrs) Mon:Yes/No Tue:Yes/No and so on... (OR)
Monthly: Time:1020(hrs) DayOfMonth:20
Duration: 2(min)

Based on the frequency of run, i will need respective details:
If Daily: int Time;

If Weekly: int Time;
int Day[7]; \\Day 0 to 6; 0-Sun, 1-Mon, 2-Tue and so on. Whichever checked will be 1 else 0

If Monthly int Time;
int DayOfMonth;

1. Currently, I am planning to use Struct, but I am finding it hard to manage things. Please suggest me a way to manage all the data.
2. How do I trigger the windows service to run "Task1.exe" at that particular time (keep in mind task will be run daily or Weekly or Monthly)?
Ex: I schedule Task1 Daily at 0400hrs. Present time is 1200hrs.I can take the difference time and put to sleep(). But in case of Monthly, it will be hard to find difference and the value will go beyond the limits in msec.
RedUnited 6-Jun-12 2:13am View    
Deleted
Thank you for the inputs.
I went through few of the topics in Code Project regarding Scheduler design, all of them are .net related projects.
Following is one sample data from XML I will fetch:
Name: Task1
Exe: task1.exe
Daily: Time:1000(hrs) (OR)
Weekly: Time:1010(hrs) Mon:Yes/No Tue:Yes/No and so on... (OR)
Monthly: Time:1020(hrs) DayOfMonth:20
Duration: 2(min)

Based on the frequency of run, i will need respective details:
If Daily: int Time;

If Weekly: int Time;
int Day[7]; \\Day 0 to 6; 0-Sun, 1-Mon, 2-Tue and so on. Whichever checked will be 1 else 0

If Monthly int Time;
int DayOfMonth;

1. Currently, I am planning to use Struct, but I am finding it hard to manage things. Please suggest me a way to manage all the data.
2. How do I trigger the windows service to run "Task1.exe" at that particular time (keep in mind task will be run daily or Weekly or Monthly)?
Ex: I schedule Task1 Daily at 0400hrs. Present time is 1200hrs.I can take the difference time and put to sleep(). But in case of Monthly, it will be hard to find difference and the value will go beyond the limits in msec.
RedUnited 2-Jun-12 4:43am View    
I used LoadLibrary() and GetProcAddress()and it worked well.
Thanks a lot for your inputs :)
RedUnited 2-Jun-12 4:42am View    
I used LoadLibrary() and GetProcAddress()and it worked well.
Sorry for late reply.
Thanks lot! :)