开发者

Console App Service or ATL Service

I need to create a service. I know that you can do it with just a console application but it can also be done with ATL..开发者_如何学Python What are the benefits of the ATL Service vs a simple console application service? I understand that ATL is COM.. but what are the benefits of COM with the service.. thanks!


The service doesn't exactly benefit from COM, but rather the other way around.

By hosting your COM objects in a service, you get all the system features of services (startup before users log on, controlled policies watchdog, configuration of identity, etc.)

ATL gives you the opportunity to run your COM objects in a service context, as opposed to in-process (DLL) or regular out-of-process hosting. COM+ is another alternative for customized hosting.

If your service is just a background service, adding COM support could give you simple programmability, but otherwise I don't see any benefits.

So, I'm not sure that answers your question... The question feels backward :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜