Windows NT Systems Programming
[ Home
| Syllabus |Course Notes]
How to Compile Version 0
Downloading Version 0
From The Browser
- You can click on the version from
the home page
(or use this short cut - Version 0)
- From the directory listed, select
the file to download (main.cpp for version 0)
- 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/Version0/main.cpp 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 "version0")
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
"main.cpp" into 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 file you
downloaded earlier ("main.cpp")
- Click "OK"
- Build the project
- Click "Build/Build
version0.exe"
If all is well, it will compile and link your
project
Compiling from a Console Window
- In addition to downloading
"main.cpp", also download
"Version0.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
"main.cpp" and "Version0.mak"
- Type the command "nmake
Version0.mak"
- This will compile and link the
program and place the output into the subdirectory
"Debug"
Executing the Program from VC++ IDE
Click "Build/Execute
Version0.exe"
Executing the Program from Console Window
In the Console Window
- change directory to
"Debug"
- execute "Version0.exe"
Copyright chris wild 1997.
For problems or questions regarding this web contact [Dr. Wild].
Last updated: August 27, 1997.