Understanding DCOM

Understanding DCOM

2 (1 rating by Goodreads)
By (author)  , By (author) 

List price: US$53.48

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks

Description

Understanding DCOM cuts through the confusion, showing experienced Windows C++ developers exactly how to plan, build, and deploy distributed component applications. Discover how DCOM objects, proxy/stubs, servers, interfaces, and other elements fit together into a coherent whole. Learn the relationship of DCOM to COM, OLE, and competing technologies. Create COM classes, interfaces, connection points, and Singleton objects. Rubin and Brain demonstrate and compare all three leading approaches to DCOM development: using C++ and the Win32 API, MFC, and Microsoft's Active Template Library.
show more

Product details

  • Mixed media product | 320 pages
  • 177.8 x 233.68 x 27.94mm | 1,270.05g
  • Prentice Hall
  • Upper Saddle River, United States
  • English
  • 0130959669
  • 9780130959669

Table of contents

1. Basics of COM. Classes and Objects. How COM Is Different. COM can Run Across Processes. COM Methods Can Be Called Across a Network. COM Objects Must Be Unique Throughout the World . COM is Language Indpendent. COM Vocabulary. The Interface. Interfaces Isolate the Client From the Server. Imagine a Component. What's in a Name? The Source of All Interfaces - Iunknown. A Typical COM Object. How to Be Unique - the GUID. A COM Server. Interactions Between Client and Server. Summary. 2. Understanding the Simplest COM Client. Four Steps to Client Connectivity. Initializing the COM Subsystem. Query COM for a Specific Interface. Execute a Method on the Interface. Release the Interface. Summary. 3. Understanding a Simple COM Server. Where's the Code? Building a DLL-Based (In-Process) COM Server. Creating the Server Using the ATL Wizard. Adding a COM Object. Adding a Method to the Server. Running the Client and the Server. Summary. 4. Creating your own COM Clients and Servers. Server Side. Client Side. 5. Understanding ATL-Generated Code. The Main C++ Module. Object Maps. Export File. The COM Object - "CBeepObj". Object Inheritance. The Class Definition. The Method. Server Registration. Registry Scripts. Summary. 6. Understanding the Client and Server. Principles of COM. COM is About Interfaces. COM is Language-Independent. COM is Built Around the Concept of Transparency. Interfaces are Contracts Between the Client and Server. Software Changes. Interfaces Don't. Activation. More About Interfaces. VTABLES - Virtual Function Tables. The Class Factory. Singleton Classes. Understanding QueryInterface. Reference Counting with AddRef and Release. Method Calls. COM Identifiers: CLSID AND IID. CLSCTX -- Server Context. Inheritance. Summary. 7. An Introduction to MIDL. Origins of the MIDL Compiler. Precisely Defining Interfaces with the IDL Language. MIDL Generated Headers. Automatically Generated Proxy/Stub Modules. Automatic Creation of Type Libraries. The IDL Language. Interfaces and Methods in IDL. The Component Class in IDL. Type Libraries in IDL. MIDL Post-Processing. Summary. 8. Defining and Using Interfaces. Base Types. Attributes. Double Parameters. Boolean Parameters. Working with Strings. Arrays. Structures and Enumerations. Summary. 9. OLE Automation and Dual Interfaces. IDL Definitions. The IDispatch Interface. Using Invoke. Using Type Libraries for Early Binding. Dual Interfaces. There is no Proxy/Stub DLL for Dispatch Interfaces. Properties. Adding Properties with the Class Wizard. Methods. The ISupportErrorInfo Interface. Summary. 10. COM Threading Models. Synchronization and Marshaling. Threading Models. Apartment, Free, and Single Threads. The ATL Wizard and Threading Models. Apartment Threads. Single Threads. Free Threaded Servers. Both. Marshaling Between Threads. Using Apartment Threads. Free Threading Model. Testing the Different Models. Summary. 11. The COM Registry. The COM Registry Structure. Registration of CLSIDs. Registration of ProgIDs. Registration of AppIDs. Self-Registration in ATL Servers. The RGS File. Automatic Registration of Remote Servers. In-Process Servers. Using the Registry API. Summary. 12. Callback Interfaces. Client and Server Confusion. Custom Callback Interfaces. A Callback Example. Create the Server. Add a COM Object to the Server. Adding the ICallBack Interface to IDL. Modify the Header. Adding the Advise Method to the Server. Adding the UnAdvise Method. Calling the Client from the Server. Create the Client Dialog Application. Adding the Callback COM Object. Linking to the Server Headers. COM Maps. Implementing the Callback Method. Adding the Object Map. Connecting to the Server. Cleaning Up. Adding the OnButton Code. A Chronology of Events. A Multi-Threaded Server. Starting the Worker Thread. Marshaling the Interface Between Threads. Starting the Worker Thread: Part 2. A Simple Worker Thread Class. Implementing the Worker Thread. All Good Threads Eventually Die. Summary. 13. Connection Points. Modifying the Callback Server. Adding Connection Points to the Client Program. Add the Callback Object to the Client. Modifying the CpClient Application. Registering With the Server's Connection Point Interface. Adding the Now and Later Buttons. Using the Connection Point - the Server Side. Adding the Later2 Method. Summary. 14. Distributed COM. An Overview of Remote Connections. Converting a Client for Remote Access. Adding Security. Security Concepts. Access Permissions. Launch Permissions. Authentication. Impersonation. Identity. Custom Security. CoInitializeSecurity. Disconnection. Using the Registry for Remote Connections. Installing the Server on a Remote Computer. 15. ATL and Compiler Support. C++ SDK Programming. MFC COM. ATL - The Choice for Servers. Basic Templates. A Simple Template Example. Template Classes. Native Compiler Directives. The #IMPORT Directive. Namespace Declarations. Smart Interface Pointers. Smart Pointer Classes. Watch Out for Destructors. Smart Pointer Error Handling. How the IMPORT Directive Works. Raw and Wrapper Methods. Summary. 16. Other Topics. Errors. Information Code. Facility Code. Customer Code Flag and Reserved bits. Severity Code. Looking Up HRESULTS. SCODES. Displaying Error Messages. Using FormatMessage. Aggregation and Containment. Building a COM Object with MFC. Adding Code for the Nested Classes. Accessing the Nested Class. Appendix. Index.
show more

About Marshall Brain

Raoul Rubin is a computer consultant specializing in Microsoft Technologies. He is based in North Carolina.

Marshall Brain is founder and principal of Interface Technologies, Research Triangle, North Carolina. His firm specializes in software training for developers and administrators at leading financial companies such as Morgan Stanley, Lehman Brothers and Goldman Sachs. He is the author of Win32 System Services: The Heart of Windows 95 and Windows NT, and co-author of several books in the Prentice Hall Series on Microsoft Technologies, including Windows CE and Microsoft Network Technology.
show more

Rating details

1 ratings
2 out of 5 stars
5 0% (0)
4 0% (0)
3 0% (0)
2 100% (1)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X