-
COM 连接点
在 COM 中的典型场景有客户端对象实例化服务器对象,然后再使对这些对象的调用。然而,如果没有特别的机制,将很难为这些服务器对象,转身回来对客户端对象进行调用。COM 连接点提供这个特别的机制,使客户端与服务器之间的双向通信。使用连接点,该服务器可以调用客户端,当某些事件发生在服务器上。与连接点服务器指定的事件,它能够提高通过定义一个接口。已在服务器上引发这些事件时所采取的行动的客户端向服务器注册自己。客户端随后提供由服务器定义的接口实现。有标准的机制,通过该客户端可以注册自己的服务器。COM 为此提供支持和要求的接口。COM 连接点服务器的客户可以写在 c + + 和 C# 中的托管代码。C + + 客户端注册提供接收器接口的实现类的实例。托管客户端注册代表对于个别的事件,从而创造一个单一的接收器,每个事件通知方法。在托管领域中,有两种方法,客户端可以注册本身 — — 这两种方法稍后在本专栏中,我详细介绍。有很少的工作样本,进行事件和在 Web 上的互操作。在本专栏中,我集中精力创建活动模板库 (ATL) 连接点服务器。这涉及到将公开一个 COM 方法,定义将由客户端执行的事件接口和实现提出了来自服务器的事件的代码。我也告诉你一个提供接收器实现的示例 c + + 客户端加上一个示例 C# 客户端和的两种方式,您可以注册,并侦听来自服务器的事件。最后,我谈实现托管的事件接收器的推荐方式。
- 2022-11-08 05:15:03下载
- 积分:1
-
实现类似资源管理器功能,可以方便的管理文件
实现类似资源管理器功能,可以方便的管理文件-realize the function of the resource mangager
- 2023-09-05 08:30:03下载
- 积分:1
-
This code for find object on the map
This code for find object on the map
- 2022-02-15 06:05:19下载
- 积分:1
-
development of the system designed to enable banks to handle customers access bu...
开发本系统的目的在于方便银行处理储户的存取款业务-development of the system designed to enable banks to handle customers access business
- 2022-12-07 22:20:03下载
- 积分:1
-
RGB, the form of diversification, it is suitable for beginners to use, very good...
RGB,形式多样化,很适合初学者使用,很好的代码-RGB, the form of diversification, it is suitable for beginners to use, very good code
- 2022-05-16 00:04:43下载
- 积分:1
-
WPF多点触控简单示范程序
VS2012环境编写,WPF下的触控演示程序.可以对WPF触控有个简单的了解,也有助于了解TUIO~可以达到显示器硬件支持的最大触点数.触摸后会得到每个触点的ID,生成跟随触点移动的有色框,框中显示触点ID信息.有色框随手指移动而移动,抬起后消失.
- 2022-01-26 02:15:55下载
- 积分:1
-
Matchstick Game in C
火柴棒游戏:
- 2022-05-09 10:53:59下载
- 积分:1
-
This is a photo of a general purpose timer/ 在我们写的程序当中,总有一些配置信息需要保存下来,以便完成程序的功能,最...
This is a photo of a general purpose timer/ 在我们写的程序当中,总有一些配置信息需要保存下来,以便完成程序的功能,最简单的办法就是将这些信息写入INI文件中,程序初始化时再读入.具体应用如下:counter card you can wirewrap in a weekend. It plugs into your PC s ISA bus just like a sound or modem card. It gives high-resolution timing (microseconds). Because of its programmablity, it is very powerful and flexible. You can even control DC or servo motors using pulse-width modulated (PWM), or stepper motors using its square wave capabilities. The figure below is the actual output (square wave) from the 8254 card captured by an oscilloscope: -This a photo of a general purpose timer. When we write program, There is always some configuration need to be saved, so that we can finish the function of the program.The most simple way is write these infomation to the INI file. It is read by the program during initialization,it is used as follows: counter card you can wirewrap in a weekend. It plugs into your PC s ISA bus just like a sound or modem card. It gives high-resolu
- 2023-04-27 05:55:03下载
- 积分:1
-
这是一个关于三角网格的程序的一部分,需要在vc++中应用
这是一个关于三角网格的程序的一部分,需要在vc++中应用-This is a triangular mesh on the part of the procedure, the need for vc++ Application
- 2022-02-13 18:24:48下载
- 积分:1
-
应用程序在选定的硬盘中搜索MP3文件,我..
这个应用程序在选定的硬盘中搜索MP3文件,在一个列表视图控件中显示搜索的文件和它们的信息,并在双击时播放它。 -the application procedures in the selection of drives to search for MP3 files, in a ClistCtrl shows search of documents and their information and double-click it for broadcast.
- 2022-05-17 11:44:36下载
- 积分:1