| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: How Do I start another DOS program from DJGPP ? |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <9hr5as0b85fv9j9s78isj46ob59u00i89c@4ax.com> |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1000208094014 DOT 28790K AT is> <87p46p$e4u$1 AT nnrp1 DOT deja DOT com> <38A183C7 DOT AC3F0097 AT americasm01 DOT nt DOT com> <87ucs9$7at$1 AT nnrp1 DOT deja DOT com> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 38 |
| X-Trace: | /b4C/HkfPMI+kp4sJ2EqArr6TOqtVbfvBstoI/pJC1KQI9xrOIliL86kRirpRInhthQXY/te6brL!t5oNUe+z4Hd/c0xgqL72UxLhZFYyPhoCYhPLxlPD23IZIgc/PDAs8Ps+BHa2GRBo2yFAnMOWPZxN!WkDKI0k= |
| X-Complaints-To: | abuse AT gte DOT net |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| NNTP-Posting-Date: | Thu, 10 Feb 2000 17:01:29 GMT |
| Distribution: | world |
| Date: | Thu, 10 Feb 2000 17:01:29 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Thu, 10 Feb 2000 13:02:02 GMT, arcadepreserv AT hotmail DOT com wrote:
>How about this approach then ?
>
>frontend.c
>
>main{
>...
>setup_timer_interrupt_to_call_int_handler_often_enough;
>exec_dos_program("backend.exe>tempfile.dat");
>...
>}
>
>int_handler
>{
>read_last_string_from_file("tempfile.txt");
>process_that_string_quickly_since_we_are_in_an_interrupt;
>}
// You're calling DOS in an interrupt handler.
read_last_string_from_file
{
call_dos();
}
// DOS is not reentrant.
call_dos
{
if(already_doing_something)
crash_pc();
}
--
Damian Yerrick http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |