|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
The Active Template Library (ATL) is a set of template-based C++ classes that let you create small, fast Component Object Model (COM) objects. It has special support for key COM features, including stock implementations, dual interfaces, standard COM enumerator interfaces, connection points, tear-off interfaces, and ActiveX controls.
If you do a lot of ATL programming, you will want to learn more about attributes, a new feature in Visual C++ .NET that is designed to simplify COM programming. For more information, see Attributed Programming.
In This Section
- ATL Tutorial
Leads you through the creation of a control and demonstrates some ATL fundamentals in the process.
- Attributes Tutorial
Leads you through the creation of a client and a server application using attributes and events.
- Introduction to COM and ATL
Introduces the major concepts behind the Component Object Model (COM). This article also briefly explains what ATL is and when you should use it.
- Fundamentals of ATL COM Objects
Discusses the relationship among various ATL classes and how those classes are implemented.
- Dual Interfaces and ATL
Describes dual interfaces from an ATL perspective.
- ATL Collections and Enumerators
Describes the implementation and creation of collections and enumerators in ATL.
- Composite Control Fundamentals
Provides step-by-step instructions for creating a composite control. A composite control is a type of ActiveX control that can contain other ActiveX controls or Windows controls.
- ATL Control Containment FAQ
Covers the fundamental questions related to hosting controls with ATL.
- ATL COM Property Pages
Shows you how to specify and implement COM property pages.
- ATL Support for DHTML Controls
Provides step-by-step instructions for creating a DHTML control.
- ATL Connection Points
Explains what connection points are and how ATL implements them.
- Event Handling and ATL
- ATL and the Free Threaded Marshaler
Provides details on the ATL Simple Object Wizard's option that allows your class to aggregate the free threaded marshaler (FTM).
- Specifying the Project's Threading Model
Describes the macros that are available to control run-time performance related to threading in your project.
- ATL Module Classes
Discusses the module classes new for ATL 7.0. Module classes implement the basic functionality required by ATL.
- ATL Services
Covers the series of events that occur when a service is implemented. Also talks about some of the concepts related to developing a service.
- ATL Window Classes
Describes how to create, superclass, and subclass windows in ATL. The ATL window classes are not COM classes.
- ATL Collection Classes
Describes how to use arrays and maps in ATL.
- The ATL Registry Component (Registrar)
Discusses ATL scripting syntax and replaceable parameters. It also explains how to set up a static link to the Registrar.
- Programming with ATL and C Run-Time Code
Discusses the benefits of using the C Run-Time Library (CRT) or alternatively using the _ATL_MIN_CRT macro to reduce dependency on CRT code.
- Programming with CComBSTR
Discusses several situations that require caution when programming with CComBSTR.