Windows NT Systems Programming: Spring 1999
[ Home | Syllabus | Course Notes | Assignments | Search]
How to Compile Version 1
Downloading Version 1
From The Browser
- You can click on the version from the home page
(or use this short cut - Version 1)
- From the directory listed, select the files to download (*.mak,
*.cpp and *.h)
OR download the v1.zip file
- After it appears in your browser, save the file in a convenient
directory
(click "File, Save as" in most browsers)
From the Lab, all files are accessible from
~wild/public_html/windowsnt/Spring99/Programs
- Copy
~wild/public_html/windowsnt/Spring99/Programs/Version1/*.mak, *.cpp and *.h to a
convenient directory
(I prefer to keep all interesting files in the UNIX file system and access them from
Windows NT)
Compiling using Visual C++ IDE
- Start Visual C++ (Close help dialog if it comes up)
- Create New Project
- Click "File/New" (or CTL-N) to get project creation
dialog box.
- Select "Win32 Console Application"
- Name your project (for example "version1")
this goes in the "Project Name" box
- Select any directory for the project (It is highly recommended
that each project goes in its own directory and that it is the same directory you
downloaded the files above)
this goes in the "Location" box
- Click "OK" to close dialog box.
- Import source file
- Click "Project/Add to Project/Files" to get file
selection dialog box
- Select the files you downloaded earlier
- Click "OK"
- Build the project
- Click "Build/Build version1.exe"
If all is well, it will compile and link your project
Compiling from a Console Window
For this to work, you need to set up your environment to compile c++ from
a Console. For Visual C++, the file vcvars32.bat in the bin directory will do this. I put
this file in my startup directory.
- In addition to downloading *.cpp and *.h, also download
"MessageFiler.mak" in the first step
- Also you need to set certain environment variables - see notes on this subject
- Open a console window (Command prompt in windows NT or DOS
command prompt in Windows 95)
- Change to the directory containing source files and
"MessageFiler.mak"
- Type the command "nmake MessageFiler.mak"
- This will compile and link the program and place the output into
the subdirectory "Release"
Executing the Program from VC++ IDE
Click "Build/Execute Version1.exe"
Executing the Program from Console Window
In the Console Window
- change directory to "Release"
- execute "MessageFiler.exe"
Copyright chris wild 1999.
For problems or questions regarding this web contact [Dr.
Wild].
Last updated: January 20, 1999.