C#.NET中的自动化服务器 [英] Automation Servers in C# .NET

查看:124
本文介绍了C#.NET中的自动化服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

是否可以开发具有自动化支持的C#.NET应用程序,
即类似于MFC应用程序中的OLE自动化


.NET框架支持COM服务器吗?

谢谢
Radhakrishnan G.

Dear All

Is it possible to develop a C#.NET application with automation supports,
i.e. like OLE Automation in MFC application


Is .NET framework support COM Servers?

Thanks
Radhakrishnan G.

推荐答案

在Jim的回复中,可以同时执行以下两项操作:

1)用C#编写COM客户端(连接并使用COM服务器).

2)用C#编写COM服务器(其他COM客户端可以连接到其中,包括用C或C ++编写的纯本机服务器).


---------

添加链接以响应OP的评论.

http://msdn.microsoft.com/en-us/magazine/cc163494.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/aa645712 (v = VS.71).aspx [ http://www.codeproject.com/KB/COM/cominterop.aspx [ ^ ]

http://www.codeproject.com/KB/COM/nettocom.aspx [ ^ ]
Adding to Jim''s reply, yes you can do both of these:

1) Write COM clients in C# (that connect to and use a COM server).

2) Write COM servers in C# (that other COM clients can connect to, including pure native ones written in C or C++).


---------

Adding links in response to OP''s comments.

http://msdn.microsoft.com/en-us/magazine/cc163494.aspx[^]

http://msdn.microsoft.com/en-us/library/aa645712(v=VS.71).aspx[^]

http://www.codeproject.com/KB/COM/cominterop.aspx[^]

http://www.codeproject.com/KB/COM/nettocom.aspx[^]


要回答您的问题:

是的,如果您愿意,可以开发支持自动化的C#.NET应用程序,包括OLE.如果您将搜索重点放在Office Automation和COM Interop上,那么您的方法就正确了.

http://www.c-sharpcorner.com/UploadFile/amrish_deep/WordAutomation05102007223223PMPM/WordAutomation.aspx
To answer your question:

Yes it is possible to develop a C#.NET application that supports automation, including OLE should you so wish. If you focus your search on Office Automation and COM Interop, you''re going the right way.

http://www.c-sharpcorner.com/UploadFile/amrish_deep/WordAutomation05102007223934PM/WordAutomation.aspx


这篇关于C#.NET中的自动化服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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