在单独的DLL之间回调 [英] Call backs between separate DLLs

查看:77
本文介绍了在单独的DLL之间回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用Windows Embedded CE 6.0。开发流接口驱动程序作为DLL,用于从SPI接口读取数据。我在这里有一个回调,需要每隔1ms调用一次。 

I am working on Windows Embedded CE 6.0. Developing a stream Interface driver as DLL for data read from SPI Interface. I have a call back here which needs to be called every 1ms. 

我还有一个Sequencer作为流接口驱动程序作为DLL来处理来自不同模块的所有回调。

I will have a Sequencer also as a stream interface driver as DLL which handles all call backs from different modules.

我需要通过函数调用将我的回调注册到音序器。

I need to register my call backs to sequencer through a function call.

我想知道的是不同的驱动程序DLL之间是否可以调用函数。如果是,那么如何?

All i want to know is whether functions calls is possible between different driver DLLs. If yes then how?

请帮助我找到满足此要求的正确解决方案。

Please help me to find the correct solution for this requirement.

 

提前感谢

推荐答案

只要DLL在同一个虚拟空间中(无论是在内核模式还是在用户模式下)和在同一进程中加载​​然后回调是可能的。尽管使用消息队列或只是事件进行通信和等待可能会更好。
As long as the DLL's are in the same virtual space (either both in kernel mode or both in user mode) and are loaded in the same process then callbacks are possible. It may be better though to use a message queue or simply events to communicate and wait.


这篇关于在单独的DLL之间回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆