RunProgram communication difficulties

Just starting out? Need help? Post your questions and find answers here.
AndyMK
Enthusiast
Enthusiast
Posts: 582
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

RunProgram communication difficulties

Post by AndyMK »

I think this has to be one of the most confusing commands i have seen. I basically want a launcher program to launch another program and have 2 way communications between both. I can see how to receive data in the launcher but how do i tell the launched program to send data? WriteProgramData() requires a "Program" variable. Is this it's own PID? I don't understand the workflow on this. Would someone be kind enough to explain or give a simple 2 program example with bidirectional communication? Thanks
Jihugen
User
User
Posts: 45
Joined: Mon Jun 07, 2010 11:36 pm
Location: Normandy, France

Re: RunProgram communication difficulties

Post by Jihugen »

Sorry, I'm not giving you some code, but just a clue, because I think you're starting with a wrong idea.
From what I read in the help file, WriteProgramData() or ReadProgramData() are to be used by the launcher only.
May be I'll say something sutpid, but to send data from the launcher, isn't it a simple Print(Text$) in console mode, or WriteConsoleData()?
AndyMK
Enthusiast
Enthusiast
Posts: 582
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Re: RunProgram communication difficulties

Post by AndyMK »

The one thing don't want to do is use a console window. So i guess these commands are out of the question. I'll use named pipes instead. Thanks for the reply.
Post Reply