home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!caen!hellgate.utah.edu!gr.cs.utah.edu!gershon
- From: gershon%gr.cs.utah.edu@cs.utah.edu (Elber Gershon)
- Subject: OS2 basics
- Date: 27 Jul 92 10:34:01 MDT
- Message-ID: <1992Jul27.103401.19641@hellgate.utah.edu>
- Organization: University of Utah CS Dept
- Lines: 27
-
- o.k. OS2 gurus, here is a one (actually two) for you.
-
- * From the books I have which are not for version 2.0 (mainly for 1.1/2), it
- seems their is no way a process can be forked from the command line (i.e
- cmd.exe) and open a PM window while having stdin/out in contact.
- If process A is forked from cmd.exe and process A DosExecPgm
- process B in EXEC_BACKGROUND, then process B can open a PM window while
- process A still have stdin/out. The two processes A and B can then talk
- via pipes.
- The above works but, as expected, is not fast. Is there a way to
- do the above with a single process? That is, can a single process in
- OS2 2.0 open a PM window and have stdin/out intact? Can it be done with a
- thread creation instead of a new process? Sample code will be appreciated.
-
- * What is the fastest way of drawing horizontal lines? Is GpiLine optimized
- for horizontal lines? Is it the OS2 kernel that draw the lines (DDA)
- or is it the display driver?
-
- thanks
-
- Gershon
-
-
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- Elber Gershon gershon@cs.utah.edu
- 918 University village Tel: (801) 582-1807 (Home)
- Salt Lake City, Utah 84108-1180 Tel: (801) 581-5642 (Work)
-