DLL_Callback: Sample for asyncronous inn - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
This sample demonstrates the use of asyncronous inner-process operations.
In this case we have an app that wants to get data from a DB,
which could take a undefined long amount of time.
The app wants to do other work while waiting for the result of the DB-Call.
It calls the "GetDBData()"-function, which returns immediately.
After the DLL-function has done its work, it notifies the caller app
via the CALLBACK-function "DataReadNotify()".
这个例子演示了匿名进程内操作的使用方法。当我们的应用程序需要从一个数据库中获取数据时,可能需要不确定的时间,在等待数据库调用的结果时,应用程序可能需要做其它的事情。它调用"GetDBData()"函数,立即返回结果。在DLL函数完成工作之后,它使用回调函数"DataReadNotify()"通知调用的应用程序。
来源: http://www.codeguru.com/dll/DLL_Callback.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
DLL_Callback |
 1.0  |
2004-03-14 |
下载 |
|
|