04-01-2005, 11:54 PM
04-02-2005, 12:04 AM
The only thing that comes to mind right now would be using files.
Psuedocode:
Psuedocode:
Code:
A: Writes Pie to file
B: Reads file and sees Pie, then writes 42 to file
A: Sees the 42. ect
04-02-2005, 12:30 AM
How can this happen at real time??
Anonymous
04-02-2005, 12:59 AM
it woudlnt, it would be done in steps
step 1: write to external file.
step 2: pass execution to prog2
step 3: prog2 reads the file, writes its output
step 4: pass execution back to mainprog
er... why are you doing this btw
step 1: write to external file.
step 2: pass execution to prog2
step 3: prog2 reads the file, writes its output
step 4: pass execution back to mainprog
er... why are you doing this btw
04-05-2005, 12:46 AM
I think he means some way of multithreading. Sorry dude, not with QB
04-05-2005, 04:03 PM
Two DOS programs can't run at the same time in a single DOS environment. DOS was made like this...
If you plan to run two programs sequentially in the same DOS box, the CHAIN instruction can be set to preserve variables.
You can have two DOS boxes running at the same time in Windows. There are many ways in wich windows processes can communicate but those can't be accessed from the dos programs, unless you use a slave Windows program to do it. You could use dsock (a library allowing QB to access the TCP-IP services of Windows) to connect "live" the two programs.
If you plan to run two programs sequentially in the same DOS box, the CHAIN instruction can be set to preserve variables.
You can have two DOS boxes running at the same time in Windows. There are many ways in wich windows processes can communicate but those can't be accessed from the dos programs, unless you use a slave Windows program to do it. You could use dsock (a library allowing QB to access the TCP-IP services of Windows) to connect "live" the two programs.