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

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

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

    项目描述:
    In most cases of my work I develop ATL objects with worker threads. In the worker threads there must be often fire events for signalling thread states. The problem of firing events from worker thread is that they must enter another apartment. In this apartment the sink interfaces are not valid and thats why some clients would not be receive the events (eg VB). I found a simple solution for that. (A solution without PostMessage.)

    在大多数情况下我使用工作线程来开发ATL对象。在工作线程中必须经常激发事件以发送线程状态的信号。从工作线程中发送事件的问题是它们必须进入另一个空间。这是个空间中sink 接口不是有效的,所以一些客户端不能接收到事件(如VB)。为此,我找到了一个简单的解决方法(一个不使用PostMessage的方法)。
    来源: http://www.codeguru.com/atl/ThreadEvents.shtml
    类别:
    发布者: cbd002

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

    原始下载连接(国外) http://www.codeguru.com/code/legacy/atl/ThreadEvents_Exam.zip

      » 合 作 伙 伴