在后台保存? [英] Saving in the background?

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

问题描述

这是我真正想要的:我希望自动保存更改.最主要的是,它不会在关闭前不要求您保存更改.崩溃或打开程序后,将恢复以前的状态.

这可能吗?我认为您可以在后台进行保存,但是您在每次交易中都这样做吗?你如何实现这样的事情?您是否使用线程?还是只保存没有线程会更快?我从未实现过线程.

Here''s what I really want: I''d like for changes to to be saved automatically. The major thing is that it doesn''t ask you to save changes before you close. After a crash or opening the program, the previous state is restored.

Is this possible? I assume you can save in the background but do you do it at every transaction? How do you implement such a thing? Do you use threads? Or is it quicker just to save without threads? I''ve never implemented a thread.

推荐答案

您将需要一个计时器.
您可以决定定期保存信息.
You will need a timer for this.
You can decide to save the information periodically.


这篇关于在后台保存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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