16,005,038 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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! :)