在Win32控制台应用程序中使用settimer 3个月
问题描述:
如何设置Win32控制台应用程序的SetTimer的期限为3个月.
3个月完成后,应停止运行该应用程序.
我们需要提醒一下,它不是连续运行的应用程序.
任何人都可以在这个问题上提供帮助.
在此先感谢.
Hi,
How to SetTimer for a Win32 console application for a period of 3 months.
When 3 Months completed it should stop the application to run.
We need to remind that its not a continuos running application.
Can anyone help regarding this issue.
Thanks in Advance.
答
这样的事情怎么样:
http://support.microsoft.com/kb/308569 [ http://msdn.microsoft.com/en-us/library/system.datetime.aspx [^ ]
并致电datetime.now以查看当前日期.您可以将最后一个日期存储在txt文件中:
http://msdn.microsoft.com/en-us/library/92e05ft3.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/s2tte0y1.aspx [ ^ ]
还要别的吗? ;)
How about something like this:
http://support.microsoft.com/kb/308569[^]
And in your program use this:
http://msdn.microsoft.com/en-us/library/system.datetime.aspx[^]
and call datetime.now to see the current date. You could store the last date in a txt file:
http://msdn.microsoft.com/en-us/library/92e05ft3.aspx[^]
http://msdn.microsoft.com/en-us/library/s2tte0y1.aspx[^]
anything else? ;)