Solved

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

Posted on 2004-09-30
4
153 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
ID: 12197585
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

685 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