Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: blp01 AT uow DOT edu DOT au, djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Writing TSRs Date: Mon, 1 Jun 1998 17:56:34 -0700 Message-ID: <19980602005455.AAH11858@ppp124.cartsys.com> Precedence: bulk At 09:22 5/31/1998 GMT, Brett Porter wrote: >On 31 May 1998 03:58:35 GMT, malcolmj7 AT aol DOT com (MalcolmJ7) wrote: > >>Is there a way to write TSRs in DJGPP? >>I used to use _dos_keep, but it's not in DJGPP. >> >>How do I write them in DJGPP? >> > >Like this: > >char *path = getenv( "COMSPEC" ); >execl( path, path, NULL ); > >This causes a DOS shell, with your program still loaded. There isn't >any other way, the normal DOS keep function is not supported. There are other ways; it is in fact possible to write a true TSR with DJGPP. An example may be found in v2tk/. Nate Eldredge nate AT cartsys DOT com