Windows NT Systems Programming
[ Home
| Syllabus |Course Notes]
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 (*.cpp and *.h)
- 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/Programs
- Copy
~wild/public_html/Programs/Version1/*.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
- In addition to downloading *.cpp
and *.h, also download "MessageFiler.mak" in
the first step
- 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 1997.
For problems or questions regarding this web contact [Dr. Wild].
Last updated: September 02, 1997.