The CD included with this book contains the source pages and reference materials that have been referred to throughout the book. Some of you will simply open the files and projects from the CD and look at them as you read the book. And some of you will build the sample projects from scratch, following the instructions in each chapter, but will open these files on the CD so that you can copy large blocks of text without having to type.
As well, we have gathered together a number of electronic books on topics of interest to many Visual C++ programmers. These books are referred to throughout the book. You can read these books straight from the CD in a web browser, for an in-depth explanation of topics that are introduced only in the printed book. Some of these electronic books are no longer available in a paper form: others are on the shelves of your bookstore right now. They combine to form a powerful reference set for todayís Visual C++ programmer.
Finally, we have arranged for Scot Wingo's MFC FAQ to be included on the CD. This comprehensive document addresses questions almost all new MFC and Visual C++ programmers raise. You will find demonstration versions of a number of Stingray Software products on the CD as well.
Hereís an overview of what you can expect:
The CD contains several subdirectories located off the root directory. The directories youíll find on the CD will be as follows, with application, code, or chapter-specific subdirectories under each of these:
Table F.1óDirectory Structure on the CD
\BOOKS | Online books, each in their own subdirectory |
\CODE | The source code from the book. Each chapter that contains sample files, source code, and so on will be contained in a subdirectory named for the chapter it references |
\STINGSOFT | The MFC FAQ and the Stingray software provided for your use and evaluation |
The electronic books on the CD are available to you as HTML documents that can be read from any World Wide Web browser that you may have currently installed on your machine (such as Internet Explorer or Netscape Navigator). The exception is C++ By Example, included as an Adobe PDF file. If you do not have the Adobe reader for these files, one is included on the CD in the \BOOKS\EXAMPLE directory.
The following books are included in electronic form:
ActiveX programming with Visual C++
This just-released book covers a wide variety of ActiveX programming concepts and applications. It explains how to build ActiveX controls with MFC and with ATL, and extends many of the concepts discussed in the ActiveX chapters of this book. You'll find it in \BOOKS\ACTIVEX.
Special Edition Using ISAPI
If you were curious about the power of server-side programming you glimpsed in Chapter 18 of this book, "Sockets, MAPI, and the Internet," then you will really enjoy reading Using ISAPI. It explores extensions and filters that will bring your web server under your control. You'll find it in \BOOKS\ISAPI.
Special Edition Using HTML, 2nd Edition
Several of the programming examples in this book involve web pages. If you've been meaning to learn how to use HTML to make web pages of your own, here's your chance. Using HTML teaches you the basics of Hypertext Markup Language so that you can publish on the World Wide Web or a corporate intranet. You'll find it in \BOOKS\HTML.
C++ By Example
If you need a refresher on the syntax of C++, you need look no further. C++ By Example covers all the keywords of C++ and explains how it differs from C. There is even a little coverage of object oriented programming. You'll find it in \BOOKS\EXAMPLE.
Special Edition Using MFC
Just released, Using MFC delves into the Microsoft Foundation Classes in greater detail than is possible in a book that covers all of Visual C++. You also learn to build you own classes based on MFC classes. You'll find it in \BOOKS\MFC.
Reading an Electronic Book as an HTML Document
To read any electronic book supplied as an HTML document, you need to start your Web browser and open the document file INDEX.HTM located in the appropriate subdirectory of the CD. Alternatively, you can browse the CD directory by using File Manager and double-clickiing INDEX.HTM.
After youíve opened the INDEX.HTM page, you can access all of the book's contents by clicking the highlighted chapter number or topic name. The electronic book works like any other Web page; when you click a hot link, a new page is opened or the browser will take you to the new location in the document. As you read through the electronic book, you will notice other highlighted words or phrases. Clicking these cross-references will also take you to a new location within the electronic book. You can always use your browser's forward or backward buttons to return to your original location.
This book contains code examples that include listing headers. For example, "see Listing 10.1." These are sample documents presented for planning purposes, and items that are indicated with the On the CD icon. For example, consider the following listing reference:
Listing 17.10óShowStringDoc.cppóCShowStringDoc::OnNewDocument()
This listing indicates that this particular code snippet (or example) is included electronically on the CD. To find it, browse to the \CODE subdirectory on the CD and from there to the Chap17 subdirectory. Select the file name that matches the one referenced in the listing header. In this example, youíd open the ShowStringDoc.cpp file. If you prefer, you can look for a project file and open the entire project in Visual C++, then use the file names in the listing headers as a guide to the file that you should switch to within Visual C++.
© 1997, QUE Corporation, an imprint of Macmillan Publishing USA, a Simon and Schuster Company.