Windows过程 [英] WINDOWS PROCESS

查看:93
本文介绍了Windows过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在编写文件管理对话框应用程序,以搜索删除并备份计算机上的某些日志文件.我在Windows XP上运行的Microsoft Visual Studio 2005中使用MFC.我想实现一些功能,以便在后台运行一个自动过程,以便在每个可配置的时间段结束时,初始化删除或备份过程.这意味着,每当机器关闭或重新启动时,该过程应从停止处继续进行.即使关闭初始化它的对话框,该过程也应该继续运行.很难实现此功能,请提供帮助.

Gerald

Am writing a file management dialog application to search delete and back up certain logfiles on a machine. Am using MFC in Microsoft Visual studio 2005 running on Windows xp. i would like to implement functionality such that there is an auto process running in the back ground such that at the end of every configurable period of time, the delete or backup process is initialised. this means that every time the machine shuts down or restarts, the process should continue from where it stopped. the process should also continue running even when the dialog that initialised it is closed. am finding a hard time to implement this functionality, please help.

Gerald

推荐答案

您需要将应用程序转换为一直运行并定期执行其内部任务的Windows服务,或将应用程序添加到任务计划程序中
You need either to convert your application to a windows service that runs all the time and periodically goes through its housekeeping tasks, or add the application to the task scheduler to be run at some regular interval.


感谢理查德的帮助;
然后,我将重新选择使用任务计划程序的选项,因为我已经对应用程序的轮廓进行了很多布局.但是,对我来说仍然不清楚的是,我如何让任务sheduler在应用程序中恢复工作线程.对话框窗口处于非活动状态时,它将成功吗?
Thanks Richard for your help;
i will then emback on the option of using the task scheduler because i have so much layed out the outline of the application. What remains unclear for me however is how i can let the task sheduler perform a worker thread resume in the application. will it succeed while the dialog window is not active?


这篇关于Windows过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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