Hi people !
X.EXE calls Y.exe. When Y.EXE terminates I need to return
a String to X.EXE.
What I need to do to return this string ?
X.EXE is a clipper program and Y.EXE is a Delphi program.
I remember researching a technique to copy data from one Delphi application to another several years ago. I've managed to find the thread (thread102-402462). I know this isn't exactly what you requested but maybe it'll give you some ideas.
Hope this helps!
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer."
Paul Ehrlich
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
I saw a thread here yesterday giving 3 ideas, file, environment variable e passing messages, as Stretchwickster said above. I´m not seeing this thread anymore (was deleted?).
Environment variable is a good idea. We used SetEnvironmentVariable() function. When you activate a child process it creates a copy of environment variables.
You can change its values but when you return theses values are lost, i.e., you cannot return back a value.
The easiest way, seems to me, is create a file. Although not so elegant, works. We´ll implement some like this :
X.EXE will call Y.EXE passing filename to create ( Y.EXE somefilename )
Y.EXE will process and write the string to somefilename.
X.EXE will open somefilename and read the string.
Thak You All for the attention !
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.