Hi,

what is the best way to send a message from a Dll to the Exeprogram ?

Thanks,
Nordwind64
Posted on 2003-08-30 06:39:26 by Nordwind64
What about using SendMessage? :)
Posted on 2003-08-30 09:09:37 by japheth
Or you could register a callback routine, as is done with some of the Windows APIs.
Posted on 2003-08-30 15:44:02 by sluggy
Hi,

ok, SendMessage.
Which parameters can I use for own Messages ? Can you please post an example ?

Thanks,
Nordwind64
Posted on 2003-08-31 08:12:27 by Nordwind64
I don't really understand your question. Just SendMessage with your own message and make sure that your callback function handles that message.
Posted on 2003-08-31 08:36:08 by roticv
The values you can assign as your own personally defined message are WM_USER (0400h - 07FFFh), the lParam and wParam values are application defined and can be any DWORD you want.


MY_MESSAGE equ WM_USER +21

invoke PostMessage, hWin, MY_MESSAGE, Any_wParam_Value, Any_lParam_Value


.ELSEIF uMsg == MY_MESSAGE
; Do my thing
Posted on 2003-08-31 11:41:07 by donkey
I don't see the point when you can just call the EXE code directly.
Posted on 2003-08-31 16:38:40 by Sephiroth3
Hi,

thank you !!!
Donkey - that's what I've looking for !

Greetings,
Nordwind64
Posted on 2003-08-31 23:27:13 by Nordwind64