Article View: comp.sys.amiga.tech
Article #11458Re: window help
From: Jon Kay
Date: Fri, 17 Feb 1989 04:33
Date: Fri, 17 Feb 1989 04:33
34 lines
2077 bytes
2077 bytes
In article <20428@agate.BERKELEY.EDU> mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) writes: >In article <23793@pbhya.PacBell.COM> hbit@pbhya.PacBell.COM (Henry Bitter) writes: ><I am trying to get a small C program working that is using both Intuition and ><DOS. My problem is after creating my own screen and window the output that is ><created using printf commands still goes to the workbench screen and window. > > ... > >Now, if someone knows of a way supported by CBM of getting a >FileHandle pointing to a window after you've opened a file, that would >very usefull. I'd like to see it if you know how. > > <mike >-- There is one. Unfortunately, I am not within reach of my manuals at the moment, so I cannot be as specific as I would like, but here goes: If you do a FileInfo or an Info on a CON: window, one of the fields DOES return a pointer to the Window structure of that particular CON:. Unfortunately, I don't remember which field it is. It's in either the AmigaDOS Reference Manual or the Amiga Technical Manual, in the descriptions of DOS calls or DOS packet types, respectively. It is also possible, using BeginIO/SendIO type calls, to set up a console around a Window of your creation. But you can't perform printf's on it, but have to stick with write()-type calls (unless you happen to have _doprnt() - type code sitting around...). Hope this helps. If you don't have the manuals mentioned above, write me and I'll send specifics, or post if the amount of desperation out there seems to warrant it. Jon Kay
Technical Details
Message-ID:
<794@jhunix.HCF.JHU.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!haven!aplcen!jhunix!ins_ajskReferences:
<23793@pbhya.PacBell.COM> <20428@agate.BERKELEY.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!haven!aplcen!jhunix!ins_ajsk From: ins_ajsk@jhunix.HCF.JHU.EDU (Jon Kay) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: window help Message-ID: <794@jhunix.HCF.JHU.EDU> Date: 17 Feb 89 04:33:07 GMT References: <23793@pbhya.PacBell.COM> <20428@agate.BERKELEY.EDU> Reply-To: ins_ajsk@jhunix.UUCP (Jon Kay) Followup-To: comp.sys.amiga.tech Organization: Johns Hopkins Lines: 34