Page 1 of 1

Named pipe/FileMapping/PostMessage()

Posted: Mon Feb 14, 2005 3:04 pm
by eriansa
What is the best way to let 1 program communicate with another.
So far, I have only been using PostMessage() and it seems to work fine.

BUT : can I be sure that the posted message will always be received by the target program?

Thanks in advance,

eric

Posted: Mon Feb 14, 2005 7:13 pm
by Fred
I think than filemapping is the best way to transfert data between apps (and not only a flag/small info, as PostMessage() only have 2 longs params (8 bytes). Rings did some examples on this subject IIRC which was really cool to look at.

Posted: Tue Feb 15, 2005 11:42 am
by eriansa
Sometimes windows is damn complicated, this time windows is as simple as...PureBasic : FileMapping it is then, Thanks.

Posted: Tue Feb 15, 2005 1:05 pm
by Rings
yes, that is the result of it:
www.srings.de/Downloads/GlobalSharedMemory.zip

share memory between Appz.

:)