ATL: Firing Events from Worker Threads - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
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 |
下载 |
|
|