Date : Sun, 11 Aug 1985 05:52:56 GMT
From : "Richard L. Klappal" <rlk%wlcrjs.uucp@BRL.ARPA>
Subject: Re: how to execute programs from within cpm programs
In article <946@sdcsla.UUCP> hestenes@sdcsla.UUCP (Eric Hestenes) writes:
>Can anyone give me a hint as to how someone would call one program,
>say WORDSTAR or something simpler, from within another program.
>
>Methods using Turbo Pascal, 'C' or assembler would be useful.
Both AZTEC (MANX) and BDS C support the 'exec' statement or an equivalent,
that allow a program to call another.
NOTE: These calls are NOT forks, so you cannot return to the original
program.
I believe both systems supply enough of the source to show how it is done.
(if I remember correctly, the file name of the new program is stored
in the BDOS buffer (?at BDOSBASE+8 (?)), and a couple of pointers need
to be set up pointing to the start and end of the filename.
If this is not enough help, send me mail, and I will try to look up
the details.
Richard Klappal
UUCP: ..!ihnp4!wlcrjs!uklpl!rlk | "Money is truthful. If a man
MCIMail: rklappal | speaks of his honor, make him
Compuserve: 74106,1021 | pay cash."
USPS: 1 S 299 Danby Street |
Villa Park IL 60181 | Lazarus Long
TEL: (312) 620-4988 | (aka R. Heinlein)