PDA

View Full Version : Interprocess communication (WM_COPYDATA)



Petr Schreiber
13-04-2008, 14:54
Hi,

I think Mike some time ago noted that he would like to see way two thinBASIC processes can communicate.
Here is dummy way using WM_COPYDATA message and hidden label.

Simply run two attached proggies and they will chat together :)

Trick is that from WM_COPYDATA you can extract handle of dialog which broadcasted it.
I know this sample is not the best one, and that WM_COPYDATA can have its own information "inside", but the way I did it it works too ;D


Petr

kryton9
14-04-2008, 08:31
Petr, I think your photos is fake... you can't be so young and such a powerful wizard... please show us the old powerful wizard who comes up with this magic! :)