TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Russell Coker
date: 1994-06-20 22:13:40
subject: C/c++ Compiler

PF> There are a few pmprintf()'s out there,  but I find them cumbersome.

 PF> My favorite trick is OX2.SYS.  This device driver 
 PF> creates an "aux" device that prints on your secondary 
 PF> monochrome monitor.  So I simply say "pmprog >aux" and 
 PF> see it as it happens.

   I've found an interesting thing.  You can use DosWrite() to file handle
0 (IE the one that's normally STDIN) and it appears on the screen.  This
can be directed to a file by "myprog 0> myfile"...  This means
that you've got 3 streams of output available from your program if you need
it.
   As you might guess I discovered this as a result of a bug in my program
which resulted in it writing to file handle 0 instead of 1.  This bug was
found after the program had been working as designed (IE all output
appeared on screen) for several weeks.  ;-)


   cya


--- Maximus/2 2.01wb

* Origin: Multi - 61-3-739-7145 (3:633/363)
SEEN-BY: 54/54 620/243 632/301 348 365 386 998 633/104 252 260 357 363 371
SEEN-BY: 633/373 634/384 635/210 502 503 636/100 638/100 640/820 690/660
SEEN-BY: 711/409 413 430 807 808 809 934 712/353 623 713/888 800/1 2442/0
@PATH: 633/363 260 371 635/503 632/348 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.