home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c034 / 4.ddi / SOURCE / SAMPLES.DO$ / SAMPLES.bin
Encoding:
Text File  |  1990-02-14  |  3.5 KB  |  77 lines

  1.  
  2.               SAMPLES.DOC File
  3.  
  4.       Notes on sample programs included with the Microsoft(R)
  5.                  C Optimizing Compiler Version 6.00
  6.  
  7.              (C) Copyright Microsoft Corporation, 1990
  8.  
  9.  
  10.      Files              Description
  11.      -----              -----------
  12.  
  13.      GRDEMO.MAK         GRDEMO illustrates general graphics techniques
  14.      GRDEMO.C           including drawing, animation, palette
  15.      MENU.C             switching, window adjustment, menus, and
  16.      MENU.H             turtle graphics. The MENU and TURTLE modules
  17.      TURTLE.C           are independent modules that could be used
  18.      TURTLE.H           in your own programs. Real mode only.
  19.  
  20.      CHRTDEMO.MAK       CHRTDEMO illustrates presentation graphics
  21.      CHRTDEMO.C         techniques. You can use this program as a tool
  22.      CHRTSUPT.C         for testing different modes and options before
  23.      CHRTDEMO.H         building them into your own programs. Real mode
  24.                         only.
  25.  
  26.      SORTDEMO.C         Visually illustrates six different sorting
  27.                         algorithms. The source code demonstrates how
  28.                         to make OS/2 calls. Real or protect mode.
  29.  
  30.      SNAP.C             Runs in the background and saves the current
  31.                         screen in a file when a hot key is pressed.
  32.                         Protect mode only.
  33.  
  34.      INCLUDE.C          A PWB extension file that implements an include
  35.                         command that finds and opens include files.
  36.  
  37.      TXTFMT.C           A PWB extension file that implements various
  38.                         commands related to text formatting. You can use
  39.                         these commands to format paragraphs, center
  40.                         text, change case, and insert or delete tab
  41.                         spaces.
  42.  
  43.      FILTER.C           A PWB extension file that implements a filter
  44.                         command. You can use it to replace a block of
  45.                         text with the output of a user-specified
  46.                         filter (such as the DOS SORT program).
  47.  
  48. ======================< Note on Graphics Libraries >=======================
  49.  
  50. GRDEMO and CHRTDEMO require GRAPHICS.LIB. CHRTDEMO also requires
  51. PGCHART.LIB. SORTDEMO requires GRAPHICS.LIB for DOS or GRTEXTP.LIB for
  52. OS/2. If you did not request these libraries in your combined library
  53. files during setup, you will get "unresolved external" linker errors
  54. when you try to compile the programs.
  55.  
  56. If you are using CL, specify the library names on the command line.
  57. For example, use this command line to compile GRDEMO:
  58.  
  59.         CL GRDEMO.C MENU.C TURTLE.C GRAPHICS.LIB
  60.  
  61. If you are using PWB, you can use the supplied program list (.MAK)
  62. files. These automatically add the appropriate libraries.
  63.  
  64. ======================< Note on Naming Conventions >=======================
  65.  
  66. The example programs use a subset of the naming conventions used in
  67. OS/2 and Windows include files. In this convention, the first
  68. character of an identifier is a lowercase letter called a prefix.
  69. Common prefixes include p (pointer), a (array), i (index), and c
  70. (count). After the prefix, there may be an additional lowercase tag,
  71. usually indicating type. Common tags include ch (char), f (flag), sz
  72. (zero-terminated string) l (long), and x or y (x or y coordinate).
  73. Following this there may be one or more qualifiers, each beginning
  74. with an uppercase letter. For example, an identifier called
  75. achFileName is an array (a) of characters (ch) containing a file name
  76. (FileName).
  77.