Page 1 of 1

RunProgram communication difficulties

Posted: Sun Jun 27, 2010 1:41 pm
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

Re: RunProgram communication difficulties

Posted: Sun Jun 27, 2010 5:23 pm
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()?

Re: RunProgram communication difficulties

Posted: Sun Jun 27, 2010 5:37 pm
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.