Named pipe/FileMapping/PostMessage()

Windows specific forum
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Named pipe/FileMapping/PostMessage()

Post 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
Fred
Administrator
Administrator
Posts: 18357
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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.
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Post by eriansa »

Sometimes windows is damn complicated, this time windows is as simple as...PureBasic : FileMapping it is then, Thanks.
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

yes, that is the result of it:
www.srings.de/Downloads/GlobalSharedMemory.zip

share memory between Appz.

:)
SPAMINATOR NR.1
Post Reply