Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ncar!ames!pasteur!ucbvax!CLOUD9.BERKELEY.EDU!dillon
From: dillon@CLOUD9.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: pr_ConsoleTask
Message-ID: <8812091828.AA02818@cloud9.berkeley.edu>
Date: 9 Dec 88 18:28:56 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 30

:There was a very interesting discussion about Execute(), however the
:best solution was Aztec specific, and I have lent my manuals to a
:friend.  Can anyone tell me the Lattice 5.0 way of doing the following:
:
:		extern APTR DeviceProc();
:		proc->pr_ConsoleTask = DeviceProc("null:");
:
:At least I think this is Aztec specific?  pr_ConsoleTask isn't defined in
:any header file I have (which is the lattice 5.0 set).
:
:Thanks,
:wpl
:
:--
:William P Loftus       wpl@creation.UUCP     (215) 265 6833

	What you have above ought to work no matter which compiler
you use.  This will fix problems with things you Execute().  In Aztec C,
you must also fclose(stderr) because that references "*" (otherwise
you will not be able to close the console window).  I do not know what
Lattice does but there's a good chance fclose(stderr) will also work.

	     .		o
      .	    
     	  			    o
 . 
//					  O

					-Matt\|/
					      *