home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_200 / 286_02 / install.doc < prev    next >
Text File  |  1989-05-25  |  3KB  |  83 lines

  1.      The GRAD library in the distribution file is for HGA in full mode and 
  2. EPSON FX-80 or compatible printers (including IBM graphics printer). If your 
  3. system configuration is the same as the default configuration, you may skip 
  4. the next section and read the section "Compiling the GRAD sample programs".
  5.  
  6. INSTALLING GRAD LIBRARY
  7.  
  8.      To install GRAD library, you need the LIB (library manager) program from 
  9. the Microsoft C compiler utility diskette or compatible ones. If you do not 
  10. have the program, you may still use GRAD library. Read the last section on how 
  11. to use GRAD library without installation.
  12.  
  13.      If you are using HGA in half mode, you should extract the file from 
  14. HERCHALF.ARC and then type the commad:
  15.  
  16.         LIB gradlib,-+calcaddr,,gradlib
  17.  
  18.      If you are using CGA, you should extract the files from COLOR.ARC and 
  19. then type the command:
  20.  
  21.         LIB gradlib,-+calcaddr-+plottype-+ftable,,gradlib
  22.  
  23.      Similarly, if you want to use the OKIDATA ML192 printer driver, extract 
  24. all the files from OKI.ARC and then type the command:
  25.  
  26.         LIB gradlib,-+prtcntl-+prtgc-+pframe,,gradlib
  27.  
  28. After installing the library, you have to copy GRADLIB.LIB to the directory 
  29. \LIB or whatever the directory included in the environment variable LIB so 
  30. that the link can find the GRADLIB.LIB at link time.
  31.  
  32.  
  33. COMPILING SAMPLE PROGRAMS
  34.  
  35.      If you already have the executable files of the sample programs for your 
  36. system configuration, you do not need to compile the source files and you may 
  37. skip over this section.
  38.  
  39.      To compile the sample programs, you must have the Microsoft C compiler 
  40. version 4.0 with the small model library and GRAD library (GRADLIB.LIB) 
  41. installed.
  42.  
  43.      Seven programs with source listing and one program with object module 
  44. only are included. Three of them (interp, mprint and swprt) requires the GRAD 
  45. library and others are utility programs for GRAD system and GRAD library is 
  46. not required.
  47.  
  48. To compile interp, mprint and swprt, use the following commands:
  49.         cl /AS /J /Ox interp.c execfunc /link gradlib
  50.         cl /AS /J /Ox mprint.c execfunc /link gradlib
  51.         cl /AS /J /Ox swprt.c /link gradlib
  52.  
  53. To compile other programs, type:
  54.         cl /AS /J /Ox tex2grad.c
  55.         cl /AS /J /Ox rotate.c
  56.         cl /AS /J /Ox size.c
  57.         cl /AS /J /Ox time.c
  58.         link dispfont,dispfont,nul,gradlib;
  59.  
  60.  
  61. USING GRAD LIBRARY WITHOUT INSTALLATION
  62.  
  63.      If you don't have the LIB program or you don't want to use the driver in 
  64. the library for whatever reason, you can force a certain driver to be included 
  65. in your program instead the one in the library by including their names in 
  66. linking. For example, if you want to compile swprt using OKIDATA ML192 driver, 
  67. you should extract the files from OKI.arc and use the command:
  68.  
  69.         cl /AS /J /Ox swprt.c prtcntl pframe prtgc /link gradlib
  70.  
  71. Similarly if you you want to use any other drivers, place the names of the 
  72. object files of the driver in the command line during compilation or linking.
  73.  
  74.      You only need to include the display driver only if you use the graphics 
  75. display screen. And you will need the printer driver only if you the function 
  76. PrintFrame.
  77.  
  78.      In the sample programs, interp, mprint and swprt requires a printer 
  79. driver and interp, dispfont needs a display driver.
  80.  
  81.  
  82.  
  83.