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
OpenSSH: A Survival Guide for Secure Shell Handling (Version 1.0)
Step 4.4 How to Generate a Key Using PuTTY
Step 4.6 How to use PuTTY Passphrase Agents
Step 6.2 Using Port Forwarding Within PuTTY to Read Your E-mail Securely
Conclusion
Appendix - Sample sshd_config File
Oracle Developer Forms Techniques
Tips for Standard GUI Practices and Forms Development
Playing with Relations
Intelligence with Regard to Form Object Properties
Creating a Tree Item
A New Look at Relations Using REFS
Google Maps Hacks: Tips & Tools for Geographic Searching and Remixing
Hacks 1728: Introduction
Hack 23. Find a Place to Live
Hack 32. Locate a Phone Number
Hack 67. Serve Custom Map Imagery
Hack 68. Automatically Cut and Name Custom Map Tiles
Ruby Cookbook (Cookbooks (OReilly))
Converting Between Time Zones
Handling Commercial Dates
Walking a Directory Tree
Finding and Changing the Current Working Directory
Making a Copy of an Object
Microsoft VBScript Professional Projects
Customizing the Start Menu and Quick Launch Toolbar
Using Configuration Files to Control Script Execution
Developing Script Log Analyzers
Maintaining a 30-Day Summary Log Archive
Converting Reports to HTML Pages
.NET System Management Services
.NET Framework and Windows Management Instrumentation
Using the System.Management Namespace
Querying WMI
Handling WMI Events
WMI Security
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