Here are some hints for using Smalltalk in the PC Lab.
Log in to a PC (in room 232) as usual. (To log onto the PCs type: CTRL-ALT-DEL (all at once) you then get a prompt. Use your ordinary CS login name and password; see support if you have difficulties). Be sure you log into the CSEPCLAB domain.
From the `My Computer' icon, find your home directory (mine is under `\\ifilesrv1\students', which you may need to map [to drive Z:, perhaps] by right-clicking on `My Computer' and selecting `Map Network Drive'. ).
Once you have a window with your home directory open, create a new folder (a subdirectory) with the name `smalltalk' -- do this using the menu option `File -> New -> Folder'.
Now you must copy the two files in the folder
\\ifilesrv1\students\gjb\st-imagesinto the directory `smalltalk' you just created. You can just select the `gjb' folder from the `\\ifilesrv1\students' window (you'll have to map that network share if your home directory is elsewhere), then select the `st-images' folder from the `gjb' window. A new window with two files (V.exe and Vw.exe) will appear. You should select both of these icons (by CTRL-selecting the second, or using CTRL-A to select all) and then RIGHT-Mouse-Drag to copy into the folder `smalltalk' that you created (as a subdirectory of your home directory). Be sure that when you release the RIGHT mouse button, you choose "Copy here".
Now double click on your "smalltalk" folder. A window should open showing the two icons you just copied. They should be labeled "V.exe" and "Vw.exe"; if they are labelled "Shortcut to..." you have mistakenly created shortcut links, and you should the delete the shortcuts, and try copying the files again --- be sure to use the right mouse button when you drag the files from the `st-images' directory to your `smalltalk' directory and ensure that you select "Copy here".
You may want to make another copy of the "V.exe" file in your `smalltalk' directory -- consider calling it "V-orig.exe". The "V" binary is your smalltalk image and is changed as you introduce code into your Smalltalk environment; you may want to go back to a fresh image if you made uninintentional changes while you were just playing around.
Finally, you need to update your NT Environment "path" variable to point at the `c:\apps\stexpres' directory since many needed supporting files are located there. Choose `Start -> Settings -> Control Panel' from the start menu. Then select the system icon which will pop up the system properties dialog box. Select the `Environment' tab and scroll down in the `User Variables for ...:' window until you see the variable named `path'. Single click on that row, and the two text entry boxes at the bottom of the `System properties' dialog will reflect your selection: the `Variable' text line should have the entry "path", and the `Value' text line should have some list of semicolon-separated directories.
You need to add `;c:\apps\stexpres' to the `Value' text line. When finished with this step, mine reads:
d:\MSDEV\BIN;%path%;C:\apps\stexpresPressing
You can create a shortcut to your copy of Vw.exe for your start menu if you'd like.
You can inspect the source code for all of the methods provided by the system, as well as the source code for the methods that you write. This source code is stored in separate files (not in the image). The source code for the methods provided by the system is in the sources.sml file. This is a read-only file stored in:
C:\apps\stexpres\sources.smlYour source code, for both system classes that you modify and new classes that you write, is in your change.log file which is kept in your `smalltalk' folder (or whatever folder you started `Vw.exe' from). All users need to have their own private changes file. The system will automatically put all your new code in this changes file.
Finally, you can explicitly `file-out' a class or a category of classes, and put the code into a file. This will be a small text file, which you save on another machine, `file-in' to a fresh image, etc. (We'll call these fileout files.) Also this is the file that you should print out (or maybe email; details later) to hand in for your assignments.
c: mkdir smalltalk cd smalltalk ftp ftp.cs.washington.edu # Use username "anonymous", password of your email address ftp> cd courses/cse341 # you do not type in the `ftp> ' ftp> binary ftp> get STEXPRES.ZIP ftp> quit pkunzip -d STEXPRES.ZIPThen you can execute "Vw.exe" directly from that directory. Remember to change your "path" environment variable if you will be running "Vw.exe" from directories other than the directory in which you uncompressed the STEXPRES.ZIP file. Should you ever want (or need!) a fresh image, you can get it here: V.EXE (about 1.3MB).
See also Smalltalk Express Product Information and documentation
To log out from Windows NT go to the file menu of the program manager and choose "Logout". If that somehow doesn't seem to work it may be the case that you still have applications running. You should then first close those and then try again.
gjb@cs.washington.edu (Last Update: 30-March-1998)