如何编写服务? [英] How to write a service?

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

问题描述

我不知道如何编写服务.谁能帮我(登录前执行我的应用程序的服务)

谢谢

I do not know how to write services. Can any one help me (service to execute my application before login)

Thanks

推荐答案

VB总是垃圾.我怀疑它是否能够执行您想做的事情,如果没有C ++代码来帮助它,它就不会做任何有用的事情.它已经过时了将近十年.不要使用它.
VB was always rubbish. I doubt it''s capable of what you want to do, it never did anything useful without C++ code to help it. It''s been obsolete for almost a decade. Don''t use it.


正如克里斯蒂安(Christian)所指出的那样,您不应使用VB6编写Windows服务的代码,如:

As already pointed out by Christian, you should NOT code a Windows Service using VB6, as stated in "INFO: Running Visual Basic Applications as Windows NT Services":

Microsoft当前不建议也不支持将Visual Basic应用程序作为Microsoft Windows NT,Windows 2000和Windows XP Services运行当安装并作为Microsoft Windows Services运行时,行为不稳定.
Microsoft does not currently recommend, and does not support, running Visual Basic applications as Microsoft Windows NT, Windows 2000 and Windows XP Services because the applications may exhibit unstable behavior when installed and run as Microsoft Windows Services.


(当然,本文中的"Visual Basic"代表VB6或更早的版本).

:)


(of course ''Visual Basic'' stands for VB6 or earlier, in the article).

:)


这篇关于如何编写服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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