[外文翻译]com与com事件.rar

RAR格式版权申诉手机打开展开

[外文翻译]com与com事件,[外文翻译]com与com事件包含中文翻译和英文原文,内容详细完整,建议下载参考!中文: 3100 字英文: 10000字符创造com客户端和服务器看起来很容易.正和最近发现的如何全面推行com事件有一些巧合。每项重要的网络语言都有自己的不同. 当谈到vb.net,似乎很难动态地连接或取下一个事件来例行公事. 说到c#...
编号:36-74270大小:20.00K
分类: 论文>外文翻译

该文档为压缩文件,包含的文件列表如下:

内容介绍

原文档由会员 xiaowei 发布

[外文翻译]COM与COM事件

包含中文翻译和英文原文,内容详细完整,建议下载参考!

中文: 3100 字
英文: 10000字符

创造com客户端和服务器看起来很容易.正和最近发现的如何全面推行com事件有一些巧合。每项重要的网络语言都有自己的不同. 当谈到VB.NET,似乎很难动态地连接或取下一个事件来例行公事. 说到C#的唯一问题是在文件的最后.从一个Delphi的客户端得到这个消息,可以贯穿一些基本com根基,并讨论如何利用这些得到com interlope,并把工作重点放在C#和Delphi. 是在Delphi的背景下工作然后再用COM连接到网。Com的一个重要职能是分离接口和执行. 一个接口定义了一些方法和性能,但不提供任何执行. 一个CLASS由具有执行代码的成员组成. 成员可供对象实例从阶级或接口提取. 一个COM对象,通过发布接口使其成员客户端存在. 一个COM CLASS可实施任意数量的接口. C#中,VB.NET和Delphi中有一个非常自然的结构规则。这个COM类是firewatcher实行ifirewatcher和ifiledestroyer com接口. 在C++中,你需要用这种多重性接口的糟糕的机制来完成这一工作 ......



COM and COM events
At first sight creating COM clients and servers with .NET looks like a snap. As I recently found out implementing full COM event support has some quirks. Each of the major .NET languages has its own. When it comes to VB.NET it appears to be very hard (if not impossible) to dynamically attach or detach an event handling routine. When it comes to C# the only problem was in the end the documentation. In a comment savage mentions problems he has with responding to COM events from a Delphi client. In this post I'll run through some essential COM fundamentals and discuss how to use these to get COM interlope working with a focus on C# and Delphi. My background lies in Delphi,working with COM in Delphi brought me to .NET. An essential aspect of COM is the separation of interface and implementation. An interface defines a number of methods and properties but does not provide any implementation. A class has members with implementing code. Members are made available to objects instantiated from the class or in interfaces extracted from these objects. A COM object makes members available to COM clients by publishing interfaces. One COM class can ......