Input-output through

redsuitee

Member
I need some helps here..

I want to make a communication between 2 programs, let say from Progress 9 to Progress 10..

this is my code in Progress 9 .
Code:
DEFINE STREAM s1.
DEF VAR A AS CHAR INITIAL '123456789'.

INPUT-OUTPUT STREAM s1 THROUGH 
    VALUE("C:\OpenEdge\bin\prowin32.exe 
          -p test.p") 
          NO-MAP NO-CONVERT UNBUFFERED.

PUT STREAM s1 A.
INPUT-OUTPUT STREAM s1 CLOSE.

test.p is a program in Progress 10 version.
How can I display Variable A in test.p? Is it possible?

Thank you in advance.
 
you can pass some data to the new process using '-param' parameter in command line... but why would you need something like that, do you really have two applications running on different Progress versions on the same machine???
 
Input-output through is intended for use with programs that provide input and output ... prowin32.exe by itself doesn't do that. You could have the two sessions both connect to a pipe, but I would think the usual way to do this was with sockets. Have one session be a socket server and have the other one be a client and connect to it.

BTW, the examples on this topic in the manual are terrible.
 
Back
Top