Flylib.com
Developers Workshop to COM and ATL 3.0
Developers Workshop to COM and ATL 3.0
ISBN: 1556227043
EAN: 2147483647
Year: 2000
Pages: 171
Authors:
Andrew W. Troelsen
BUY ON AMAZON
Table of Contents
BackCover
Developer s Workshop to COM and ATL 3.0
Introduction
Who Can Use this Book?
What Does This Book Cover?
Using the CD-ROM Lab Solutions
Into the Great IUnknown
Part I: Objects and Interfaces
Chapter 1: A Review of Classic Object-Oriented Programming
Life without Objects: Remembering Structured Programming in C
Principles of Object-Oriented Languages
The Principle of Encapsulation
The Principle of Inheritance
The Principle of Polymorphism
Reviewing Template-Based Programming
Chapter Summary
Chapter 2: Interface-Based Programming
A Single Public Sector
Defining an Interface Using C
How to Keep Clients Happy: The Published Interface
Developing a Custom Interface-Based API: The Rect API
Chapter Summary
Part II: Core COM
Chapter 3: The Component Object Model
A Working Definition of the Component Object Model
The Benefits of COM
The COM, OLE, and ActiveX Relationship
Standard and Custom Interfaces
The De Facto COM Interface: IUnknown
The De Facto COM Return Type: HRESULT
Defining COM Interfaces Using Standard COM Macros
Strings in COM
Activating COM Objects
The Service Control Manager (SCM) and the System Registry
Developing a COM Client
Debugging In-Process COM Servers
Chapter Summary
Chapter 4: Type Information and Language Independence
Understanding Life without IDL
Configuring a Win32 Project to Compile IDL
Defining Custom Interfaces in IDL
The Complete Shapes.idl Listing
The OLECOM Object Viewer
Visual Basic s COM Language Mapping
A Word on the JavaCOM Language Mapping
Using the Visual C COM Compiler Directives
Chapter Summary
Chapter 5: Type Information and Location Transparency
Reviewing Location Transparency
Hosting COM DLLs in a Surrogate Process
COM s Marshaling Options
Simplifying Interface and Type Library Registration
Building a Local COM Server
If(( DCOMCOM) (COMDCOM)) return S_OK
Chapter Summary
Part III: Core ATL
Chapter 6: An Introduction to the Active Template Library
The Need for ATL
What Exactly is ATL?
Creating Component Housing with the ATL COM AppWizard
Examining the Initial ATL DLL Project Files
Registering Self-Registering Servers
The ATL Object Wizard
New Project Files
Populating Your Interfaces with Methods
Populating Your Interfaces with Properties
ATL and COM Text
Debugging ATL Projects
Chapter Summary
Chapter 7: ATL COM Objects and COM Exceptions
Just In Case You Didn t Know...
An Overview of Win32 Threads
A Complete Threading Example
Threads and the COM Developer
ATL Coclasses are Abstract Base Classes
Understanding the ATL COM Map
COM Error Handling
Chapter Summary
Chapter 8: COM Object Identity and ATL
The Basic ATL COM Map
Variations on the ATL COM Map Macros
Resolving Interface Method Name Clashes
Resolving Name Clashes in ATL
Ambiguities within Interface Hierarchies
Understanding Tear-Off Interfaces
COM Reuse Mechanisms: Containment and Aggregation
Understanding COM Aggregation
The Final COM Map Macros
Chapter Summary
Chapter 9: Component Housing and ATL
A Recap of COM Server Responsibilities
CComModule: Your Server s Housekeeper
Understanding the Object Map
Chapter Summary
Part IV: COM Patterns
Chapter 10: Scriptable Objects and ATL
Smart Clients and the vTable Interface
The IDispatch Interface
Client-Side Code and the VARIANT Data Type
The DISPPARAMS Structure
The Automation Safe Array Data Type
Understanding the Dual Interface
Building Your Dispinterface Using Type Information
Building your Dispinterface Using ATL
Chapter Summary
Chapter 11: COM Enumerators and COM Collections
Developing Complex Interface Parameters in IDL
Understanding COM Enumeration
An Overview of COM Collections
Chapter Summary
Chapter 12: Callback Interfaces and Connectable Objects
The World of One-Way Communications
COM s Connectable Object Architecture
Easing a Client s Burden with IProvideClassInfo(2)
Chapter Summary
Part V: Windowing
Chapter 13: Using ATL as a Windowing Framework
And Now for Something Completely Different: ATL as a Windowing Toolkit
The Atoms of a Windows Window
The ATL Windowing Framework
Understanding CWindowImpl
The ATL Message Map
ATL s Support for Dialog Box Development
Building an Interactive Dialog with ATL
Chapter Summary
Chapter 14: Developing ActiveX Controls with ATL
Understanding the ActiveX Control
Understanding Property Pages
Invisible at Runtime Controls
The Makeup of a Typical ActiveX Control
ATL Object Wizard Options
Examining the Initial Full Control: The IDL Code
Extending Our Full Control with COM Categories
Debugging ActiveX Controls
Framework Support: CComControl and IPropertyNotifySinkCP
Framework Support: CComControlBase
Framework Support: Ambient Properties
Framework Support: Stock Properties and CStockPropImpl
Framework Support: IViewObjectExImpl
Framework Support: COM Persistence
ActiveX Controls, Property Pages, and the Container
Using an ActiveX Control from a Web Page
A Licensed Class Factory and IClassFactory2
Chapter Summary
Index
Index_A
Index_B
Index_C
Index_D
Index_E
Index_F
Index_G
Index_H
Index_I
Index_J
Index_K
Index_L
Index_M
Index_N
Index_O
Index_P
Index_Q
Index_R
Index_S
Index_T
Index_U
Index_V
Index_W
List of Figures
Developers Workshop to COM and ATL 3.0
ISBN: 1556227043
EAN: 2147483647
Year: 2000
Pages: 171
Authors:
Andrew W. Troelsen
BUY ON AMAZON
Project Management JumpStart
Initiating the Project
Defining the Project Goals
Executing the Project
Appendix A Answers to Review Questions
Appendix C Sample Project Management Checklists
CompTIA Project+ Study Guide: Exam PK0-003
Scope Planning
Schedule Planning
Comprehensive Project Plan
Project Closure
Appendix B Standard IT Project Documents
OpenSSH: A Survival Guide for Secure Shell Handling (Version 1.0)
Step 1.1 Install OpenSSH to Replace the Remote Access Protocols with Encrypted Versions
Step 2.1 Use the OpenSSH Tool Suite to Replace Clear-Text Programs
Step 4.6 How to use PuTTY Passphrase Agents
Step 4.7 Using Public Key Authentication for Automated File Transfers
Step 5.1 General Troubleshooting
Excel Scientific and Engineering Cookbook (Cookbooks (OReilly))
Saving Custom Chart Types
Generating Random Numbers
Using Summation Functions
Manipulating Matrices
Solving Linear Systems
Making Sense of Change Management: A Complete Guide to the Models, Tools and Techniques of Organizational Change
Team change
Part II - The Applications
Restructuring
Cultural change
IT-based process change
Cisco Voice Gateways and Gatekeepers
Applications for Connecting to an IP WAN
Review Questions
Secure SRST
Case Study: Add DSP Resources to the Miami Gateway
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies