Forum > LCL
Is there a Tutorial or Example using Messages
garlar27:
Hi!!
I need to send a message between 2 different applications running on the same PC. I've tried using TCP communication but it is "slow" and I wanted to use Messages but I couldn't find much here: http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/postmessage.html
Does anybody knows how to use the PostMessage, PeekMessage, SendMessage, and what their parameters means?
Is there a Tutorial for this?
Exists a different way to send something to another application?
Thanks in advance.
User137:
To go a little back on the question, how slow was the TCP? I've managed to send 100Mb/s between applications.
Regarding Windows messages you'll propably be stuck with small messages like 2 ints or something.
Also Google the terms and you'll be given Microsoft descriptions to them and alot of examples.
garlar27:
I just need to pass a signal, or a small text for synchronization or status data. I don't need to send larger data.
The delay is at connection time, and sometimes it takes up to 300ms (in worst cases) and I want to see if that connection time can be lowered.
ik:
You can try SipmleIPC that arrives with FPC (and have non gui components in Lazarus).
garlar27:
Thanks, I'll try SimpleIPC.
Navigation
[0] Message Index
[#] Next page