Learning DCOM

Learning DCOM

by Thuan L. Thai
Learning DCOM

Learning DCOM

by Thuan L. Thai

eBook

$19.49  $25.99 Save 25% Current price is $19.49, Original price is $25.99. You Save 25%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

DCOM -- the Distributed Component Object Model -- is a recent upgrade of a time-honored and well-tested technology promoted by Microsoft for distributed object programming. Now that components are playing a larger and larger part in Windows 98, Windows NT 4.0, and Windows 2000, every Windows programmer will want to understand the technology. DCOM competes with CORBA as a rich and robust method for creating expandable and flexible components, allowing you to plug in new parts conveniently and upgrade without the need for code changes to every program that uses your component.This book introduces C++ programmers to DCOM and gives them the basic tools they need to write secure, maintainable programs. While using Visual C++ development tools and wizards where appropriate, the author never leaves the results up to magic. The C++ code used to create distributed components and the communications exchanged between systems and objects are described at a level where the reader understands their significance and can use the insights for such tasks as debugging and improving performance.The first few chapters explain both the remote procedure calls that underlie DCOM's communication and the way DCOM uses C++ classes. Readers become firmly grounded in the relation between components, classes, and objects, the ways objects are created and destroyed, how clients find servers, and the basics of security and threading.After giving you a grounding in how DCOM works, this book introduces you to the Microsoft tools that make it all easy. By showing what really happens each time you choose a button in a wizard, Learning DCOM makes it possible for you to choose what you need.This book is for anyone who wants to understand DCOM. While thoroughly practical in its goals, it doesn't stint on the background you need to make your programs safe, efficient, and easy to maintain.Topics include:

  • MIDL (Microsoft Interface Definition Language, the language for defining COM interfaces)
  • COM error and exception handling
  • Custom, dispatch, and dual interfaces
  • Standard and custom factories
  • Management of in-process versus out-of-process servers
  • Distributed memory management
  • Pragmatic explanation of the DCOM wire protocol
  • Standard, custom, handler, and automation marshaling
  • Multithreading and apartments
  • Security at the system configuration and programming level
  • Active Template Library (ATL), ATL wizards -- and what they don't do
  • Writing a component that can be invoked from Visual Basic
  • Techniques for using distributed components
  • Creating an ActiveX control and embedding it in a Web client
  • Authentication and the use of Windows NT security features
  • Techniques for merging marshaling code
  • Connection and distributed events management
  • An introduction to COM+ features

Product Details

ISBN-13: 9781449308681
Publisher: O'Reilly Media, Incorporated
Publication date: 04/01/1999
Sold by: Barnes & Noble
Format: eBook
Pages: 504
File size: 5 MB

About the Author

Thuan L. Thai started computer programming 15 years ago but has never been tired with this hobby—one that he truly considers an art. He is currently a senior systems engineer at SAIC where he has led the architecture and development of several successful distributed and COM-based imaging systems. He also teaches Win32, MFC, and COM programming courses for Learning Tree International. Prior to all this, Thuan worked for AMS where he developed multi-tiered, object frameworks using C++ and RPC. He received his bachelor of science in computer science from the University of Virginia.

When not developing software, Thuan enjoys strumming his six strings and writing songs every now and then. He often plays 9-ball with the same buddies with whom he has played the game for over eight years. Thuan hopes to play more tennis, the only sport that he has ever played for more than eight hours in a single day.

Table of Contents

Dedication;
Preface;
Scope of This Book;
Some Assumptions About the Reader;
Accompanying Source Code;
Conventions;
Related Sources of Information;
Acknowledgments;
Chapter 1: Distributed Computing;
1.1 Dumb Terminals;
1.2 Client/Server Computing;
1.3 Distributed Computing Using RPC;
1.4 Distributed Objects;
1.5 Distributed Components;
Chapter 2: Distributed COM Overview;
2.1 COM;
2.2 Distributed COM;
2.3 COM Facilities and Services;
2.4 Applying COM;
Chapter 3: Objects;
3.1 Interfaces;
3.2 Objects;
3.3 Class Factories;
Chapter 4: Components;
4.1 Servers;
4.2 Clients;
4.3 Object Orientation;
Chapter 5: Infrastructure;
5.1 Memory;
5.2 Transparency;
5.3 Concurrency;
5.4 Security;
Chapter 6: Building Components with ATL;
6.1 Creating a Component;
6.2 Adding an Object;
6.3 The Generated Code;
6.4 Common Responsibilities;
6.5 Finishing Up;
Chapter 7: Using COM Objects;
7.1 Simple Client;
7.2 The COleDispatchDriver Technique;
7.3 The #import Technique;
7.4 The Manual Technique;
7.5 The Reusable echnique;
7.6 Review;
Chapter 8: COM in Cyberspace;
8.1 ATL ActiveX Controls;
8.2 Web-Enabled Clients;
8.3 MFC Composites;
8.4 ATL Composites;
8.5 ActiveX Control Properties;
Chapter 9: Applying Security;
9.1 Server-Side COM Security;
9.2 Access Token;
9.3 Audit Trail;
9.4 Administrative Alert;
9.5 Client-Side Security;
Chapter 10: Connecting Objects;
10.1 Object Reference;
10.2 Referrers;
10.3 Connection Points;
10.4 Event Sources;
10.5 Event Sinks;
10.6 Performance Impact of Connection Points;
10.7 Security Impact of the OBJREF;
Debugging Techniques;
Using the FormatMessage Function;
Using the _com_error Class;
Breaking into the Server;
Performance;
Performance Results for ThreadingModel=“”;
Performance Results for ThreadingModel=“Apartment”;
Performance Results for ThreadingModel=“Free”;
Performance Results for ThreadingModel=“Both”;
New COM Features and COM+;
Endpoint Configuration;
Nonblocking Calls;
COM+;
Hello, Universe!;
Client/Server Protocol = COM Interface;
Client Component;
Server Component;
Comforting Words;
Colophon;

From the B&N Reads Blog

Customer Reviews