Companion Disc Readme for Microsoft Office 2000/Visual Basic Programmer's Guide by David Shank, Mark Roberts, and Tamra Myers Copyright (c) 1999 by Microsoft Corporation All Rights Reserved Welcome to the companion CD-ROM for the Microsoft Office 2000/Visual Basic Programmer's Guide! This CD-ROM contains: * Online versions of all the code examples in this guide and a setup program for installing them on your machine * White papers that provide additional information about Office 2000 programming topics * Several sample applications The remainder of this Readme file describes the contents of each folder in more detail. Code Examples (Samples Folder) ============================== This guide contains hundreds of code examples that show how to work with the programming features of Microsoft Office. To help you learn about these features and incorporate them into your applications, the companion CD-ROM contains electronic versions of the code examples used in the book. In addition, the samples subfolder for each chapter contains dozens of code samples that expand on the concepts and ideas presented in the book. Wherever possible, these code samples were written not only so you can learn from studying how they work, but also so that you can use them "as-is" in your custom solutions. The code examples for the chapters are stored in the Samples subfolder on the companion CD-ROM. The files for each chapter are stored in the subfolder corresponding to the chapter number; for example, the files for Chapter 3 are stored in the Samples\CH03 subfolder. In some cases, the samples for a particular chapter are used in other chapters as well. To use the code samples The code examples are designed to be executed from your hard disk. To make sure the samples work properly, you should use the setup program on the companion CD-ROM to transfer the code samples to your machine. 1. Insert the companion CD-ROM in your CD-ROM drive. 2. Double-click Setup.exe in the root folder of the companion CD-ROM. The setup program creates an OPG folder in the root directory of your C drive, and then copies the directory structure of the companion CD-ROM to the C:\OPG folder. ************************************************************************************* IMPORTANT If you do not accept the default drive and path, you will need to modify some of the sample code to point to the drive and path where you installed the files. ************************************************************************************* Because files stored on a CD-ROM must have their read-only file attribute set, the setup program also clears the read-only file attribute after copying the files. ************************************************************************************* NOTE The Setup program works as designed, but due to a bug in some versions of Scrrun.dll, an invalid page fault (IPF) may occur immediately prior to normal program termination. This IPF is harmless and does not affect the installation of the files. ************************************************************************************* NOTES * Some of the examples use data in Northwind.mdb, a sample database that ships with Access 2000. In addition, some of the samples use the Solutions9.mdb sample file, which links to some of the tables in Northwind.mdb. If you have not installed the Northwind sample database, you must do so to take full advantage of the examples in this book. * In Word 2000, security is set by default to High, which means that the code will not run when you open the Word sample files. To use these files, you must change the security setting by pointing to Macro on the Tools menu, clicking Security, and then clicking either Medium or Low on the Security Level tab. For information about specific file names or additional requirements for the code examples in each chapter, see the discussion regarding a particular sample file in the text of each chapter. White Papers (Appendixes Folder) ================================ A number of white papers pertaining to the Office 2000 applications and the technologies they use are included in the Appendixes folder on the companion CD-ROM. For a list of the white papers and their contents, see WhitePapers.txt in the Appendixes folder. Sample Applications (Sample Applications Folder) ================================================ Several sample applications are included in the Sample Applications folder on the companion CD-ROM. Complete documentation for these applications is contained in ReadmeSamples.txt in the Sample Applications folder. Errata ====== Chapter 3, "Writing Solid Code," refers many times to a file named "FormattingExamples.doc." It should instead be referring to "FormattingExamples.dot." Chapter 6, "Working with Shared Office Components," refers to a file named "CH06_2.mdb." It should instead be referring to "CommandBarSamples.mdb." Microsoft Press Support Information =================================== Every effort has been made to ensure the accuracy of the book and the contents of this companion disc. Microsoft Press provides corrections for books through the World Wide Web at http://mspress.microsoft.com/support/ If you have comments, questions, or ideas regarding the book or this companion disc, please send them to Microsoft Press via e-mail to MSPINPUT@MICROSOFT.COM or via postal mail to: Microsoft Press Attn: Microsoft Office 2000/Visual Basic Programmer's Guide Editor One Microsoft Way Redmond, WA 98052-6399 Please note that product support is not offered through the above addresses.