home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Dos / ONSYSTEM < prev    next >
Encoding:
Text File  |  1995-12-17  |  909 b   |  21 lines  |  [TEXT/R*ch]

  1. Subject: Python system() for QuickWin builds
  2. From: amrit@xvt.com (Consultant)
  3. To: guido@cwi.nl
  4. Date: Wed, 22 Jun 1994 12:22:39 -0600 (MDT)
  5.  
  6. I searched the Windows FAQ's and finally gleaned enough information to
  7. write system() the "right" way under Windows.  The new system() function
  8. really returns the exit status of the child process (left shifted
  9. to be compatible with UNIX), and not an assumed successful completion
  10. status.
  11.  
  12. system() requires toolhelp.dll, which is only available on Windows 3.1;
  13. However, toolhelp may be freely distributed with Python for people who are
  14. clinging to Windows 3.0. (A Zipped toolhelp.dll could be put on the
  15. Python FTP site, and people who don't have it should download
  16. toolhelp.dll and put it in their /windows/system directory.)
  17.  
  18. I had to change the build procedures somewhat because system()
  19. requires different flags (-GA,-GEd instead of -Mq), and to link
  20. toolhelp.lib.
  21.