为Windows服务创建Com包装器 [英] Create Com Wrapper for Windows Service

查看:51
本文介绍了为Windows服务创建Com包装器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了Windows服务.现在,我需要为Windows服务创建COM包装器,所以
我们可以从任何客户端应用程序调用该Com Wrapper.任何人都可以为此或该过程提供示例应用程序.

Hi,

I created windows service. Now I need to create COM Wrapper for windows service so
that we can invoke that Com Wrapper from any client application. Can anyone provide sample application for this or procedure.

推荐答案

机会很好,您将不得不重写Service.

您想要它,以便任何客户可以使用您的服务,对吗?好吧,您的服务就是这些客户之一.

您应该将此作为一个类库编写,该类库可以处理您未描述的所有功能.然后,您的服务将使用与其他客户端应用程序完全相同的方式使用该库.
Chances are good you''ll have to rewrite your Service.

You want it so any client conde can use your service, correct? Well, your service is one of those clients.

You should have written this as a class library that handles all of the functionality you''re not describing. You service will then be using that library the exact same way any other client application would.


这篇关于为Windows服务创建Com包装器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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