联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 SyncEvts - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为18996
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • Air Traffic Controller
  • PoolMan
  • virtualdub-win
  • Apache-SSL-Jserv
  • CppUnit
  • FCK editor
  • GLgraph
  • Async Professional
  • -= 更多 =-

    项目描述:
    Examples of three different ways to share events amongst multiple objects. For this demo, timers are shared by multiple instances of an extremely simple clock control. But the event being shared isn't what's important, rather it's the techniques used to share the events (which could be any sort of system callback, or whatever). The methods used include sharing a global form instance with an intrinsic timer control on it, a global class instance that raises events in response to a system clock callback, and a collection-based method that fires secondary interface methods of each member in response to system clock callbacks. By using a secondary interface, different sorts of objects can all receive notifications via a simple loop.

    这个项目演示了在多个对象中共享事件的三种不同方式。其中,一个非常简单的时钟控件的多个实例共享定时器。但共享事件并不是重要的,重要的是用于共享事件的技术(可以是任意的系统回调函数,等等)。使用的方法有用一个定时器控件来共享一个全局窗体实例;一个可以响应系统时钟回调的全局类的实例;一种基于集合的方法,使用每个接口的间接接口方法来响应系统时钟回调。通过使用间接接口,不同种类的对象可以在循环中检索通知。
    来源: http://www.mvps.org/vb/
    类别:
    发布者: cbd002

    最新发布源码包
    软件包 版本号 日期 本地下载
    SyncEvts  1.0  2004-04-18 下载

    原始下载连接(国外) http://www.mvps.org/vb/code/SyncEvts.zip

      » 合 作 伙 伴