home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / wp / ew12b.zip / EWTECH.ZIP / EWTECH.001 next >
Text File  |  1993-01-19  |  2KB  |  48 lines

  1. E! for Windows - Technical Note #001
  2. **************************************
  3. Troubles when compiling with MSC 7.00
  4. **************************************
  5.  
  6. If you use the Microsoft (tm) C/C++ compiler version 7.00, you may have
  7. trouble when compiling a program from E!: the output of CL.EXE cannot be
  8. captured, thus preventing E! from pointing to errors in your source file.
  9.  
  10. We have investigated this problem and we found that CL doesn't seem to use
  11. DOS calls when making output to the screen. Since the EWX program used by E!
  12. to launch compilers is based on the assumption that any compiler uses
  13. standard DOS calls to output messages, it fails.
  14.  
  15. There's a work-around however. We have noticed that this behavior changes if
  16. the output of CL is redirected.
  17.  
  18. So, if you append a "> nul" redirection command to the CL command in either
  19. the Commands dialog box of E! or in your makefile, E! will be able to capture
  20. the compiler's output and therefore it will be able to show you the errors in
  21. the source files.
  22.  
  23. We are waiting for an answer of Microsoft about this problem. If another
  24. solution exists, we'll document it immediately.
  25.  
  26. Patrick Philippot
  27. 01/13/93
  28.  
  29. We got no answer from the Microsoft support but we found out that while CL
  30. is actually using int 21h function 40h to output data to the screen in any
  31. case, it uses stdout only when it is redirected. Otherwise, it seems to use
  32. a duplicate handle to write to the screen. So, the above work-around seems
  33. to be the only solution to bypass this strange behavior.
  34.  
  35. Patrick Philippot
  36. 01/15/93
  37.  
  38. Thanks to Microsoft's technical support we have found a satisfactory
  39. solution to this problem. The new version of EWX.EXE now checks whether the
  40. standard output device handle has been remapped and is able to capture this
  41. output even in that case. The "> nul" trick is no more necessary with MSC
  42. 7.00.
  43.  
  44. However, it may be useful with other compilers using a DOS extender.
  45.  
  46. Patrick Philippot
  47. 01/19/93
  48.