Thread View: comp.os.os2.programmer
2 messages
2 total messages
Started by Elber Gershon
Mon, 27 Jul 1992 16:34
OS2 basics
Author: 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)
Re: OS2 basics
Author: David Charlap
Date: Tue, 28 Jul 1992 17:36
Date: Tue, 28 Jul 1992 17:36
25 lines
1614 bytes
1614 bytes
In article <1992Jul27.103401.19641@hellgate.utah.edu> gershon%gr.cs.utah.edu@cs.utah.edu (Elber Gershon) writes: >o.k. OS2 gurus, here is a one (actually two) for you. > >* 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? Use GpiLine. I don't know how optimized it is, but it's the only way I know of. (You really don't want to plot pixels or draw degenerate polygons!) I believe the functions are optimized, however, so there shouldn't be a problem. Also, by using the standard API calls, your program will improve as the system DLLs are upgraded in the future. Finally, the graphics work is a cooperative effort between the display driver and the PM*.DLL files. The display.dll handles the device- specific work, and the pm*.dll files handle the generic device- independant work. -- |) David Charlap "I don't even represent myself /|_ dic5340@hertz.njit.edu sometimes so NJIT is right out!. ((|,) ~|~ Hi! I am a .signature virus, copy me into your .signature file.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads