能否在DLL和EXE(VB写的)之间进行消息传递(映射)

abcbit 2004-04-13 09:36:31
要实现的功能:用DLL接收客户端的报警消息(不确定什么时候来),一旦收到即向上发给EXE程序做处理。

当然,我也不知道这能不能叫消息映射
...全文
31 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
AgoCloud 2004-04-13
  • 打赏
  • 举报
回复
应该说这不叫消息映射,其实就是消息的传递吧。
如果要传递自定义消息,首先应在DLL中调用RegisterWindowMessage函数,注册消息,
The RegisterWindowMessage function is typically used to register messages for communicating between two cooperating applications.

If two different applications register the same message string, the applications return the same message value. The message remains registered until the session ends.

AgoCloud 2004-04-13
  • 打赏
  • 举报
回复
占个一楼先

15,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧