home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pmrintf.zip / readme.txt < prev   
Text File  |  1995-07-31  |  2KB  |  48 lines

  1.                        Description of PMRINTF utility.
  2.  
  3.    As You maybe know when using standard output to screen from Presentation
  4.  Manager program, on the display nothing is seen. So to debug the simplest thing
  5.  You must use some BIG, COMPLICATED and EXPENSIVE debugger.
  6.   NO LONGER.
  7.   In PM standard output is not lost. You need only to catch it and show
  8. in OS/2 text Window.
  9.   Program PMRINTF.EXE does this and allows for using 'printf' function from C,
  10.  'writeln' statement from MS PASCAL, or Borland PASCAL for OS/2 and 'write' 
  11. statement from MS Fortran Presentation Manager programs.
  12.  
  13. You run PMRINTF from OS/2 Window.
  14.  
  15. Syntax: pmrintf APPNAME PARM1 PARM2 ....
  16.  
  17.  where APPNAME is your debugged program's name, PARM1 is the first command line
  18. parameter to Your program, PARM2 is the second command line parameter to Your
  19. program, etc.
  20.  
  21.   Results are visible in the same OS/2 Window. If it is obscured by Your program 
  22. window move it to some convenient place to see both windows simultaneously.
  23.  
  24. To view results while Your program is being executed you should use nonbuffered
  25. output. So following requirements apply:
  26.  
  27. 1. For C program, immediately at the beginning of main, place statement:
  28. setbuf(stdout,NULL);
  29.  
  30. 2. For Borland Pascal after each writeln call flush(output);
  31.  
  32.    No other prerequisities are needed. MS Fortran and MS Pascal use nonbuffered
  33. standard output by default.
  34.                                Attention.
  35.   There is similar in purpose utility written by some IBM employee. It's for 
  36. IBM C Set only. It requires linking in to Your program a replacement printf 
  37. function.
  38.  PMRINTF is different in internal design and therefore is independent of
  39. compiler used and works with wider range of compilers. 32 and 16 bit.
  40.  
  41. Author: Stanislaw Kozlowski
  42.         POLAND
  43.         00-442 Warsaw
  44.         ul. Idzkowskiego 3 m.25
  45.  
  46. EMAIL:ml@igf.edu.pl
  47.  
  48.