Installing and compiling Hush for MS-Windows Requirements Hardware requirements: Unknown. Hush has been tested on PC's with 486 intel processor and 8 MB Memory. Hard disk space needed might be somewhere around 1 MB, not including Tck/Tk or Win32s. Software requirements: MS-Windows 3.1 or better Win32s if you have a non-32bit Windows version Tcl/Tk version 7.5/4.1 (alpha at this moment) Hush 2.0, including the MSWin extention A C++ compiler which can generate 32 bit Windows programs. Borland C++ 4.5 has been tested and passed. Where to get it: The hardware is not available by ftp. The MS-Windows software should be on your PC already, if not, why would you be interested in a MS-Windows version of Hush? Tcl/Tk and Win32s are available by ftp: ftp.smli.com:/pub/tcl or ftp.aud.alcatel.com:/tcl/ftp.smli.com Current versions are WIN41A2.EXE and WIN32S125.EXE. They might also be available at the place where you got Hush 2.0. Win32s is also shipped with Borland C++ 4.5. Hush 2.0 is available at the site where you got this file. You'll need to buy the C++ compiler. Installation If you are uncomfortable with MS-DOS and/or MS-Windows, see below for step-by-step installation, or ask someone else who feels more comfortable. * Win32s: Run W32S125.EXE from within a temporarily directory. This will expand into a bunch of installation files including SETUP.EXE. Run SETUP.EXE from the ProgramManager, FileManager or the commandline, follow instructions, skip the FREECEL installation at the end. Remove the installation files. * Tcl/Tk: Run WIN41A2.EXE from the ProgramManager or FileManager. Follow instructions, install into the directory C:\TCL (preferably). * Hush: put a diskette in drive A: containing the following files: api20.zip sim20.zip exampl20.zip mshush.zip install.bat install.inf unzip.exe Adjust install.inf to your system, that is: set the target drive and the location of the Borland Tools. and type the following in DOS: C:\> a: A:\> install * Environment: Add C:\TCL\BIN to your search path. Add the following to your environment: TCL_LIBRARY = c:/tcl/lib/tcl7.5 TK_LIBRARY = c:/tcl/lib/tk4.1 HUSH_LIBRARY = c:/hush/library DISPLAY = localhost:0.0 Step-by-step Installation * Install win32s: C:\> mkdir win32tmp C:\> cd win32tmp insert a diskette containing the Win32 program into drive A: C:\WIN32TMP> copy a:w32s125.exe C:\WIN32TMP> w32s125 bzzz, expanding, exploding, etc. C:\WIN32TMP> win setup follow instructions, setup will restart windows for you. * Install tcl/tk: insert a diskette containing the Tcl/Tk install program into drive A: ProgramManager: Menu "File" item "Run..." Command line: a:win41a2.exe follow instructions, installing into C:\TCL bzzz, installing, * Install Hush: put a diskette in drive A: containing the following files: api20.zip sim20.zip exampl20.zip mshush.zip install.bat install.inf unzip.exe Adjust install.inf to your system, that is: set the target drive and the location of the Borland Tools. If you want to install from a different drive or directory than A:\ you have to change the INSTALLSOURCE variable. Set TARGETDRIVE to the drive where you want hush to be installed on. Set BORLANDTOOLS to the location of the Borland C++ tools, this will usually be c:\bc45. Set the TCLTK variable to the location of the TCL/TK files, which defaults to c:\tcl. You can edit the install.inf using the program EDIT (comes with DOS), Notepad (comes with Windows), SysEdit (Windows) or your favorite text editor. Type C:\> a: A:\> install at the DOS prompt, and installation wil begin. The following directories will be created on the target drive: \api-2.0 The source of the Hush library. \sim-2.0 The source of the Sim package \exampl-2.0 The source of examples for Hush \mshush The source of the add-ons for MS-Windows \hush The installed Hush You can delete the \api-2.0, \sim-2.0 and \exampl-2.0 directories afterwards if you want to, or even the \mshush directory. But you can't rebuild the library if you do so. * Setting the environment: Add these line to your autoexec.bat file (after the original "PATH=" statement, before the line which starts your shell program, menu, Windows or whatever): PATH=%PATH%;C:\TCL\BIN SET TCL_LIBRARY=c:/tcl/lib/tcl7.5 SET TK_LIBRARY=c:/tcl/lib/tk4.1 SET HUSH_LIBRARY=c:/hush/library SET DISPLAY=localhost:0.0 You can edit the autoexec.bat located in C:\ using the program EDIT (comes with DOS), Notepad (comes with Windows), SysEdit (Windows) or your favorite text editor. Now restart computer to activate the new environment settings. Compiling MS-Hush programs: Check out the example makefiles (*.MAK) to create your own makefiles. It is not too hard as long as you take a good look. For more information on the makefiles click here I've experienced problems with the Borland IDE compiler. It didn't want to play with virtual destructors. The command line compiler (4.52) gave no trouble at all. I have not tested other compilers, any feed back would be apreciated. --------------------------------------------------------------------------- Jelle Alten, Hush Portmaster email: jelle@cs.vu.nl tel: 020-6799484