Essential COM

Series
Addison-Wesley
Author
Don Box  
Publisher
Addison-Wesley
Cover
Softcover
Edition
1
Language
English
Total pages
464
Pub.-date
December 1997
ISBN13
9780201634464
ISBN
0201634465
Related Titles


Product detail

Product Price CHF Available  
9780201634464
Essential COM
61.30 approx. 7-9 days

Description

Written by a leading COM authority, this unique book reveals the essence of COM, helping developers to truly understand the why, not just the how, of COM. Understanding the motivation for the design of COM and its distributed aspects is critical for developers who wish to go beyond simplistic applications of COM and become truly effective COM programmers, and to stay current with extensions, such as Microsoft Transaction Server and COM+. Box examines COM from the perspective of a C++ developer, offering a familiar frame of reference to ease you into the topic.

Table of Contents



Foreword by Charlie Kindel.


Foreword by Grady Booch.


Preface.


1. COM as a Better C++.

Software Distribution and C++.

Dynamic Linking and C++.

C++ and Portability.

Encapsulation and C++.

Separating Interface from Implementation.

Abstract Bases as Binary Interfaces.

Runtime Polymorphism.

Object Extensibility.

Resource Management.

Where Are We?



2. Interfaces.

Interfaces and Implementations Revisited.

IDL.

Methods and Results.

Interfaces and IDL.

Iunknown.

Resource Management and Iunknown.

Type Coercion and Iunknown.

Implementing Iunknown.

Using COM Interface Pointers.

Optimizing QueryInterface.

Data Types.

Attributes and Properties.

Exceptions.

Where Are We?



3. Classes.

Interface and Implementation.

Class Objects.

Activation.

Using the SCM.

Classes and Servers.

Generalizations.

Optimizations.

Interface and Implementation Again.

Monikers and Composition.

Monikers and Persistence.

Server Lifetime.

Classes and IDL.

Class Emulation.

Competent Categories.

Where Are We?



4. Objects.

IUnknown Revisited.

QueryInterface Is Symmetric.

QueryInterface Is Transitive.

QueryInterface Is Reflexive.

Objects Have Static Type.

QueryInterface and Iunknown.

Uniqueness and Identity.

Multiple Interfaces and Method Names.

Dynamic Composition.

Binary Composition.

Containment.

Where Are We?



5. Apartments.

Interface and Implementation Revisited.

Objects, Interfaces, and Apartments.

Cross-Apartment Access.

In-Process Marshaling Helpers.

Standard Marshaling Architecture.

Lifecycle Managing and Marshaling.

Custom Marshaling.

The Free Threaded Marshaler.

Where Are We?



6. Applications.

In-Process Activation Pitfalls.

Activation and the SCM.

Server Lifetime Revisited.

Application Ids.

COM and Security.

Programmatic Security.

Access Control.

Token Management.

Where Are We?



7. Miscellanea.

Pointer Basics.

Pointers and Memory.

Arrays.

Flow Control.

Dynamic versus Static Invocation.

Bidirectional Interface Contracts.

Aliasing in IDL.

Asynchronous Methods.

Where Are We?



Appendix A. The Evolution of Objects.


Appendix B. Selected Code Fragments.


Index. 0201634465T04062001

Back Cover

"Don Box makes it possible for mere mortals to join the COM cognoscenti. If youire a C++ COM programmer, buy this book." -David Chappell, Principal, Chappell & Associates and author of  Understanding ActiveX and OLE

Written by a leading COM authority, this unique book reveals the essence of COM, helping developers to truly understand the why, not just the how, of COM. Understanding the motivation for the design of COM and its distributed aspects is critical for developers who wish to go beyond simplistic applications of COM and become truly effective COM programmers. As the COM programming model continues to evolve, such insight also becomes essential to remaining current with extensions, such as Microsoft Transaction Server and COM+. By showing you why Distributed COM works as it does, Don Box enables you to apply the model creatively and effectively to everyday programming problems.

This book examines COM from the perspective of a C++ developer, offering a familiar frame of reference to ease you into the topic. You will also find comprehensive coverage of the core concepts of Distributed COM (interfaces, classes, apartments, and applications), including detailed descriptions of COM theory, the C++ language mapping, COM IDL (Interface Definition Language), the remoting architecture, IUnknown, monikers, threads, marshalers, security, and more. In addition, the book offers a thorough explanation of COMis basic vocabulary, provides a complete Distributed COM application to illustrate programming techniques, and includes the authoris tested library of COM utility code.



0201634465B04062001

Author

Don Box is a leading educator, recognized authority on the Component Object Model (COM), coauthor of the Simple Object Access Protocol (SOAP) specification, and coiner of the term "COM is Love." He recently joined Microsoft as an architect in the Microsoft® .NET Developer and Platform Evangelism Group.

Earlier in his career, Box cofounded DevelopMentor Inc., a component software think tank aimed at educating developers on the use of the COM, Java, and XML. A popular public speaker, Box is known for engaging audiences around the world, combining deep technical insight with often outrageous stunts.



0201634465AB06132002