[header.htm]
How to Compile MsgEdit
Downloading MsgEdit
From The Browser
- You can click on the version from the home page
- From the directory listed, select the files to download (*.cpp
,*.h and *.mak)
or just download "all.zip"
- After it appears in your browser, save the file in a convenient
directory
(click "File, Save as" in most browsers)
- unzip all.zip if necessary.
From the Lab, all files are accessible from
~wild/public_html/windowsNT/Spring99/Programs
- Copy
~wild/public_html/windowsNT/Spring99/Programs/Verions4/MsgEdit/HomeGrown/* 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" (not strictly correct but will generate simplest project structure)
- Name your project (for example "msgedit")
this goes in the "Project Name" box
- Select any directory for the project (e.g. server) (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 from the server directory
- Click "OK"
- Change to MFC window programming mode
- Click "Project/Settings" to get settings dialog box
- Select "Use MFC in a shared DLL" in the
"General" tab
- Select the "C/C++" tab
- remove "_CONSOLE" from the preprocessor definitions
- Select "Link" tab
- Change the Project Options /subsystem:console to
/subsystem:windows
- Click "OK"
- Build the project
- Click "Build/Build msgedit.exe"
If all is well, it will compile and link your project
Compiling from a Console Window
- Open a console window (Command prompt in windows NT or DOS
command prompt in Windows 95)
- Change to the directory containing source files
- Type the command "nmake" with the makefile name
- This will compile and link the program and place the output into
an appropriate subdirectory
Executing the Program from VC++ IDE
Click "Build/Execute server.exe"
Start up another vc++ program, and click "Build/Execute
client.exe"
Executing the Program from Console Window
In the Console Window
- change directory to "Release/Debug" as appropriate
- execute "server.exe"
Start another console window and start "client.exe"
[footer.htm]