Getting Started

My example assumes you have Microsoft Visual C++ version 4.x. We start
by creating a new console project in Developer Studio. To do this, open
Developer Studio and select "New" from the "File" menu. Next select
"Project Workspace" from the dialog and press "Ok". Finally select
"Console Application" from the "Type" listbox, enter "Hello" in the
"Name" field and press "Create". 

You should now be in a window with the Class viewer on the left. To
"implement" the four necessary classes and build our WinCGI application,
we simply open each class up in the editor and add it to the project.
First, copy the nine files to the same directory created by Developer
Studio for this application. With that completed, choose "File", "Open"
and then the file "CWinCGI.cpp". Once this appears in the text editor,
perform a right mouse click anywhere in the editor window and select
"Insert File into Project -> Hello". In the class viewer, click on the
"+" expander and observe that besides CWinCGI, the project now includes
File, FileTuple, and HugeTuple. We now need to add the main.cpp file. As
before, open the main.cpp file into the text editor and add it to the
project. Under the "FileView" tab you should see (after expanding the
"Hello Files" and "Dependencies" expanders) the CWinCGI.cpp and main.cpp
source files. We now proceed to generate the hello procedure.

Hello Again

With the main.cpp source file still in your current editor window,
locate the procedure "WinCGI_application()" near the top (the name can
of course be anything you wish; the default will suffice for our needs).
This procedure will write code to produce an HTML page that will
return text to the client's browser.

To compile and execute this project, you'll need to perform one more
setup. You need to inform Developer Studio that this project will use
MFC. This is not the default for console applications and must be
specifically set. To do this pull down the "Build" menu and choose
"Settings". In the "General" panel, ensure that "Use MFC in a static
library" is selected, otherwise the link step will fail.
