如何在注销时运行我的应用程序 [英] How do I kee my app running on log off

查看:150
本文介绍了如何在注销时运行我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,有一种方法可以保持我的VB 2010应用程序运行,即使用户注销。我读过有关服务的内容,并且不知道他们想说什么。如果服务是唯一的方式,我可以将我的exes转换为服务吗?一步一步的例子可以。我希望服务支持我使用过的所有方法。谢谢

Hi guys is there a way I can keep my VB 2010 app running even when a user logs off. I have read about services and have no idea what they are trying to say. If services are the only way, can i just convert my exes to services just like that? A step by step example would do. And i hope services support all the methods i have used. Thanks

推荐答案

您可以使用将Redis作为Windows服务运行 [ ^ ]运行你的或几乎任何exe作为Windows服务,
You can use the code from Running Redis as a Windows Service[^] to run your, or almost any exe as a Windows Service,


几乎在所有情况下,你真的需要开发Windows服务应用程序;此应用程序类型完全是为您的目的而设计的,它也可以在系统加载后自动重新启动;这是其中一个选择。请参阅:

http://en.wikipedia.org/wiki/Windows_service [< a href =http://en.wikipedia.org/wiki/Windows_servicetarget =_ blanktitle =New Window> ^ ],

http://msdn.microsoft.com/en-us/library/d56de412%28v=vs .110%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/y817hyb6%28v=vs.110%29.aspx [ ^ ]。



-SA
In almost all cases, you really need to develop a Windows Service application; this application type is designed exactly for your purpose, it can also be automatically restarted after the system is loaded; this is one of the options. Please see:
http://en.wikipedia.org/wiki/Windows_service[^],
http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/y817hyb6%28v=vs.110%29.aspx[^].

—SA


这篇关于如何在注销时运行我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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