在Win32控制台应用程序中使用settimer 3个月 [英] settimer for 3 months in win32 console application

查看:161
本文介绍了在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? ;)


这篇关于在Win32控制台应用程序中使用settimer 3个月的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆