-
COM 连接点
在 COM 中的典型场景有客户端对象实例化服务器对象,然后再使对这些对象的调用。然而,如果没有特别的机制,将很难为这些服务器对象,转身回来对客户端对象进行调用。COM 连接点提供这个特别的机制,使客户端与服务器之间的双向通信。使用连接点,该服务器可以调用客户端,当某些事件发生在服务器上。与连接点服务器指定的事件,它能够提高通过定义一个接口。已在服务器上引发这些事件时所采取的行动的客户端向服务器注册自己。客户端随后提供由服务器定义的接口实现。有标准的机制,通过该客户端可以注册自己的服务器。COM 为此提供支持和要求的接口。COM 连接点服务器的客户可以写在 c + + 和 C# 中的托管代码。C + + 客户端注册提供接收器接口的实现类的实例。托管客户端注册代表对于个别的事件,从而创造一个单一的接收器,每个事件通知方法。在托管领域中,有两种方法,客户端可以注册本身 — — 这两种方法稍后在本专栏中,我详细介绍。有很少的工作样本,进行事件和在 Web 上的互操作。在本专栏中,我集中精力创建活动模板库 (ATL) 连接点服务器。这涉及到将公开一个 COM 方法,定义将由客户端执行的事件接口和实现提出了来自服务器的事件的代码。我也告诉你一个提供接收器实现的示例 c + + 客户端加上一个示例 C# 客户端和的两种方式,您可以注册,并侦听来自服务器的事件。最后,我谈实现托管的事件接收器的推荐方式。
- 2022-11-08 05:15:03下载
- 积分:1
-
按我理解,这就是所说的三层架构了。
File工程负责最底层的文件操作
FileProtocol工程负责具体的流程及协议,将相关数据返回给界面层
UI...
按我理解,这就是所说的三层架构了。
File工程负责最底层的文件操作
FileProtocol工程负责具体的流程及协议,将相关数据返回给界面层
UI工程就是具体的界面层了,他只负责显示具体的数据,不负责软件的工作流程。
File, FileProtocol这两个工程都是DLL,注意看一下FileProtocol的工程依赖及附加包含目录。还要再看一下UI工程的工程依赖及附加包含目录。在这里,三个工程,项目解决方案是在同级目录下,通过一个解决方案去包含三个工程。这样做的好处在于,工程可以重用。比如说File工程,他负责最底层的文件操作,以后我们的其它软件项目还会用到它的,因此,以后的项目,在解决方案里直接添加File工程便可以用了。 -According to my understanding, this is referred to a three-tier architecture.
File project is responsible for the bottom of the file operations
FileProtocol charge of the project specific processes and agreement to the relevant data back to the interface layer
UI project is a specific interface layer, and he is only responsible for display of specific data, is not responsible for the software workflow.
File, FileProtocol these two projects are DLL, note that the works look FileProtocol dependence and additional include directories. Would also like to look at what the engineering rely on UI and additional include directories. Here, the three projects, t
- 2022-03-16 06:02:29下载
- 积分:1
-
The preparation of a pathway to solve the maze procedure. (2) the user to enter...
编制一个求解迷宫通路的程序。(2) 用户以文件的形式输入迷宫的数据:文件中迷宫保存在一个[ ]中,e表示入口,x表示出口,1表示障碍,0表示通路,每一行用逗号隔开。-The preparation of a pathway to solve the maze procedure. (2) the user to enter the maze in the form of data: documents saved in a maze [] in, e express entrance, x express export, express one obstacle, 0 express pathway, each line separated by commas.
- 2022-05-26 17:28:38下载
- 积分:1
-
通过读取二进制码实现画坐标曲线图,并且包括了打印、坐标变换等功能...
通过读取二进制码实现画坐标曲线图,并且包括了打印、坐标变换等功能-Read binary code to achieve through the painting coordinate curves, and includes print, coordinate transformation functions
- 2023-03-03 12:15:03下载
- 积分:1
-
基于输入文件进行云渲染VC2003数值。代码的R
基于VC2003对输入文件的数值进行了云图绘制。代码结果打包动态库,有很高的重用性。-Based on the input file VC2003 Numerical conducted a cloud rendering. Code the results of the dynamic libraries packaged with a high degree of reusability.
- 2022-02-05 21:45:07下载
- 积分:1
-
BMThread
BMThread
- 2022-06-14 04:52:23下载
- 积分:1
-
database management system3rd
数据库课后答案,数据库系统设计第三版,很全面,可以很好理解数据库设计-database management system3rd
- 2022-01-29 02:14:54下载
- 积分:1
-
用delphi写的数据库连接程序小程序,供初学者参考
用delphi写的数据库连接程序小程序,供初学者参考-used to write database connectivity procedures small program for beginners reference
- 2022-03-26 17:36:18下载
- 积分:1
-
Flash加脚本代码实现图片转换,效果简约美观
Flash加脚本代码实现图片转换,效果简约美观-picture show by flash and javascript
- 2022-08-15 21:18:14下载
- 积分:1
-
exercise for textbook
根据输入打印日历。
《Java语言程序设计》习题-exercise for textbook
- 2023-08-12 09:10:02下载
- 积分:1