Article View: comp.os.os2.programmer
Article #504OS2 basics
From: Elber Gershon
Date: Mon, 27 Jul 1992 16:34
Date: Mon, 27 Jul 1992 16:34
27 lines
1612 bytes
1612 bytes
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)
Technical Details
Message-ID:
<1992Jul27.103401.19641@hellgate.utah.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!gr.cs.utah.edu!gershonShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!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