Solved

How to programm that something executes in a determinated hour/time

Posted on 2004-09-30
4
148 Views
Last Modified: 2010-04-24
Hello everybody

i want to programm that some functions executes in a defined hour / time.
I mean, i want that, when my application is running , at 12 o'clock (for example) it executes some internal functions or management functions.
Anyone knows how to programm this?? Im using Visual C++ .NET

Thanks in advance.
0
Comment
Question by:Synth2
4 Comments
 
LVL 6

Accepted Solution

by:
Svetlin_Panayotov earned 20 total points
Comment Utility
You can create separate separate app for this task - and it can run as windows service.
check this link for more info:
http://www.codeproject.com/useritems/manc_winservice.asp
There's also another way around - create a thread in your app that periodically checks what time is it.The main drawback here's that you can have some sync problems.
Svetlin
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now