Call Delphi Program from another Delphi program
Posted on 2004-04-03
Let's say I have 2 Delphi programs.. just call it Father and Son.
Father has 50 statements and Son has 10 statements to execute when they are called/runned.
If first we run Father, at statement no 20, Father will call Son. When this happens, Son will execute his 10 statements. I want to make it such that: the Father will only continue to run his statements (statement 21 - 50) AFTER Son has finished executing his 10 statements. So it's like Father will wait until the Son finishes his statements then the Father will continue his statements.
Is there any way I can do this? I think for calling another delphi program, we have to use winexec is it?
Thankss for your help :)