Ebook banner rotater for Web Programming and Administration

Programming
    Netscape Plug-Ins

by Zan Oliphant


C  O  N  T  E  N  T  S



Chapter 1  Introduction

Chapter 2  Netscape Navigator Plug-Ins

Chapter 3  Understanding MIME

What's Next?

Chapter 4  Helper Applications and Network Communications

Chapter 5  Using a Plug-In

Chapter 6  Plug-In Design and Architecture

Chapter 7  Navigator Plug-In Design Considerations

Chapter 8  The Plug-In Application Programming Interface (API)

Chapter 9  Instance Initialization and Destruction

Chapter 10  Stream Creation and Destruction

Chapter 11  Reading From and Writing To Streams

Chapter 12  Memory Management

Chapter 13  Status Methods

Chapter 14  LiveConnect

Chapter 15  Miscellaneous Methods

Chapter 16  About the Sample Code

Chapter 17  A Streaming Audio Sample

Chapter 18  The Buffer Classes

Chapter 19  The CPU Monitor Plug-In

Chapter 20  A Plug-In with MCIWnd

Chapter 21  Using MIDI with a Background Plug-In

Chapter 22  Subclassing without Microsoft's Foundation Class Library

Chapter 23  Netscape's LiveConnect Sample

Chapter 24  Debugging with the Socket Spy

Chapter 25  About Windows C++ Compilers

Chapter 26  Writing a Plug-In with Borland C++ 5.x

Chapter 27  Writing a Plug-In with Microsoft Visual C++ 4x

Chapter 28  Writing a Plug-In with Watcom C++ 10x

Appendix A  Netscape's Product Line

Appendix B  Today's Wide World of Plug-Ins

Appendix C  Glossary of Terms



Credits



To Shirley Hubbard, Mitchell Harrison, and my family and friends in Juneau, Alaska.

Copyright © 1996 by Sams.net Publishing

FIRST EDITION

All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. For information, address Sams.net Publishing, 201 W. 103rd St., Indianapolis, IN 46290.
International Standard Book Number: 1-57521-098-3

HTML conversion by :
    M/s. LeafWriters (India) Pvt. Ltd.
    Website : http://leaf.stpn.soft.net
    e-mail : leafwriters@leaf.stpn.soft.net


All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams.net Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. Netscape is a trademark of Netscape Communications Corporation.




President, Sams PublishingRichard K. Swadley
Publishing Manager Mark Taber
Managing Editor Cindy Morrow
Marketing Manager John Pierce
Assistant Marketing Manager Kristina Perry




Acquisitions EditorSharon CoxDevelopment EditorJeff Koch
Software Development SpecialistSteve StraigerProduction EditorRyan Rader
Technical ReviewerAlec PlumbEditorial CoordinatorBill Whitmer
Technical Edit CoordinatorLynete QuinnEditorial AssistantsCoral Ackerman, Andi Richter, Rhonda Tinch-Mize
Cover DesignerTim AmrheinBook DesignerAlyssa Yesh
Copy WriterPeter FullerProduction Team Supervisor, Brad ChinnAlyssa Yesh
ProductionStephen Adams, Debra Bolhuis, Carol Bowers, Mona Brown, Bruce Clingaman, Tom Dinse, Jason Hand, Daniel Harris, Sonja Hart, Clint Labnen, Ryan Oldfather, Casey Price, Laura Robbins, SA Springer, Mark Walchle, JeffYesh


Acknowledgments

On the professional side, I would like to thank the good people at Sams.net Publishing for giving me the opportunity and support to write this book. Special thanks to Alec Plumb at Netscape for helping with the technical nuts and bolts of the plug-in API. Also, any people involved with material covered in this book, such as plug-ins and Web sites, get my thanks. As for family and friends, thanks to my parents, Alexander and Sue; my brothers, Andrew and Brant; and my sister, Alexa; for their love and support in all of my ventures. Five thousand miles is a long way-I miss you guys. Thank you Chris Shablak and Stacy Feinerman for leaving the house when I asked, and thanks to all of my Florida friends who have been ignored for the last four months. Thanks Ross and Stephanie Holeman for understanding when I missed their wedding in Alaska. An unexpected thank you goes to South Miami Beach writer Larry Boytano, who during a 3 a.m. stroll through a seedy South Beach alley unknowingly inspired me to write this book. When I told Larry that I too wanted to write, he replied, "Well, why don't you?"

About the Author

Zan Oliphant is part of a rebel group of software consultants in South Florida, who specialize in Internet applications and multimedia device drivers. He has 10 years of experience in writing device drivers and applications for Windows, DOS, OS/2, Macintosh, and UNIX. Zan and his fellow PC programming cronies (left over from IBM's personal computer glory days in the Boca Raton area) are always looking for interesting opportunities. Contact Zan at zan@gate.net if you have a cool project for them.

Tell Us What You Think!

As a reader, you are the most important critic and commentator of our books. We value your opinion and want to know what we're doing right, what we could do better, what areas you'd like to see us publish in, and any other words of wisdom you're willing to pass our way. You can help us make strong books that meet your needs and give you the computer guidance you require.

Do you have access to CompuServe or the World Wide Web? Then check out our CompuServe forum by typing GO SAMS at any prompt. If you prefer the World Wide Web, check out our site at http://www.mcp.com.

Note
If you have a technical question about this book, call the technical support line at (800) 571-5840, ext. 3668

As the team leader of the group that created this book, I welcome your comments. You can fax, e-mail, or write me directly to let me know what you did or didn't like about this book-as well as what we can do to make our books stronger. Here's the information:

FAX:(317) 581-4669
E-mail:programming_mgr@sams.mcp.com
Mail:Greg Wiegand
Comments Department
Sams.net Publishing
201 W. 103rd Street
Indianapolis, IN 46290