home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / turbo_c / tcega.arc / TURBOC.DOC < prev    next >
Text File  |  1987-07-08  |  2KB  |  46 lines

  1. Using Turbo-C from Borland with my EGA graphics routines.
  2.  
  3.  
  4. I planned to spend all day converting my EGA graphics routines from Microsoft C
  5. to Turbo-C.  It took only a few minutes.  The biggest problem is getting TurboC
  6. to scan my EGA library during it's linking phase.  Just putting it in the LIB
  7. directory did not work.  Using the LIB program (comes with Microsoft assembler)
  8. I merged my EGA with the Turbo-C CS library and it worked.  If you don't have
  9. the LIB program, you then must exit out of Turbo-C and use the TLINK program.
  10. Also you must make TC non-case sensitive (/N for TLINK, OPTION menu for TC).
  11.  
  12.  
  13. Steps to follow:
  14.  
  15.     1.    Copy the MCEGA.H to the Turbo-C INCLUDE directory.
  16.  
  17.     2.    Copy the EGA.LIB to the Turbo-C LIB directory.
  18.  
  19.     3.    If you have the Microsoft LIB program goto step 8, else goto step 4.
  20.  
  21.     4.    Compile the DEMO.C program using TC (Compile to .OBJ).
  22.  
  23.     5.    Exit TC and run TLINK as follows:
  24.  
  25.     TLINK /n lib\c0s demo,demo,,lib\ega lib\emu lib\maths lib\c0
  26.  
  27.     6.    Enter DEMO and it should run (Did for me!).
  28.  
  29.     7.    All Done!
  30.  
  31.     8.    Make sure you have a backup of the CS.LIB file.
  32.  
  33.     9.    Merge the CS.LIB with the EGA.LIB
  34.  
  35.     LIB CS
  36.     +EGA.LIB
  37.  
  38.     10. Start TC, select OPTION/LINKER Not Case Sensitive.
  39.  
  40.     11. Compile to .EXE file then Run!
  41.  
  42.  
  43. I have done both methods and it works for me. I have only spent two hours
  44. with Turbo-C and there may be a better way.  All asm source code is available
  45. for twenty dollars ($20.00) from me (address in the EGA.DOC file).  Have Fun!
  46.