Visual C++ ATL Samples
Alphabetical List of ATL Samples

The following is an alphabetical list of the ATL samples. To find an ATL sample by category, see Categorical List of ATL Samples.

Sample Description
ACTIVEDOC Demonstrates how to implement an Active Document Server.
AdvancedPV Implements an updateable (read/write) OLE DB provider with advanced techniques for loading and saving data.
ASYNC Downloads data asynchronously from a URL.
ATLAgent Demonstrates using CCommand and CAccessor to read information from a database, and demonstrates using the compiler COM support to control the Microsoft Agent control.
ATLBUTTON Creates a button that displays itself with three different bitmaps depending on its state.
ATLCollections Demonstrates the use of ICollectionOnSTLImpl and CComEnumOnSTL, and the implementation of custom copy policy classes.
ATLCON Demonstrates a simple control container.
ATLDUCK Demonstrates using connection points with ATL controls.
ATLEventHandling Demonstrates the use of IDispEventImpl and IDispEventSimpleImpl to handle events fired by Microsoft Word.
ATLFIRE Demonstrates how to build a windowed control using ATL. This sample is adapted from the MFC FIRE sample.
ATLMOVIE Demonstrates using compiler COM support and the Active Movie interfaces to play a movie in an ATL control.
ATLPages Demonstrates the implementation of a property page using IPropertyPageImpl.
ATLSafeArray Shows how to create and maintain SAFEARRAYs using CComSafeArray; also how to pass SAFEARRAYs from a component to script.
ATLSecurity Shows how to use the ATL security classes to examine security settings.
ATLTangram Demonstrates managing a large ATL project with multiple project dependencies in the IDE. Also demonstrates some basic COM concepts.
ATLTraceTool Displays the output generated by the >ATLTRACE2 macro.
AutoThread Demonstrates using >CComAutoThreadModule.
BEEPER Implements a tearoff interface — a collection/enumeration of BSTRs.
CatDB Displays the schema information, such as tables and columns, of OLE DB providers.
CDINFO Plays CD audio tracks and displays information about the tracks in tooltips and a piechart display.
CIRC Creates a control that demonstrates property pages and draws a circle.
CIRCCOLL Implements a collection/enumeration of objects using ATL and STL (C++ Standard Template Library).
COMMAP Shows how different COM interface map entry macros are used.
CONNECT Illustrates the implementation and use of connection points (the IConnectionPointContainer and IConnectionPoint interfaces) in a multithreaded environment.
CThreadPool Shows how to use a thread pool in an application and how implementing a thread pool can improve the application's performance.
CustomString Shows how to use a custom memory allocator for CStringT to improve performance in a multithreaded application.
DBViewer Demonstrates a mid-level application that relies on the CManualAccessor class to take full control of data bindings for your applications.
DCOM Demonstrates how to call a COM object implemented in a Windows NT service from multiple clients running on different machines.
DIRECT3D Creates a control that draws a spinning triangle using the Direct3D graphics library.
DispSink Demonstrates using a connection point on dispatch interfaces.
DynamicConsumer Demonstrates using dynamic accessor and schema rowset classes to read metadata from a database.
LABRADOR Implements an EXE server that does not have any user interface.
Marquee Shows how to use performance monitor objects through scripting.
MFCATL Illustrates how ATL COM objects can be used in an MFC server EXE.
MINIMAL Implements a minimalist DLL server as an illustration of how small a DLL can be when created with ATL.
MultiRead Reads through a table in a database using multiple threads.
MyProv A simple read-only provider that reads a set of two strings from a file.
OPENGL Creates a control that draws a spinning cube using the OpenGL graphics library.
POLYGON The project files for the ATL Tutorial. Builds a control that implements custom properties, events, property pages, and object safety.
Provider Demonstrates a provider that has more than one result set type.
StockProperty Implements reusable BackColor, ForeColor, and Font stock properties.
SUBEDIT Creates a superclassed Windows control.
UpdatePV Implements an updateable (read/write) OLE DB provider.

See Also

ATL Samples | Categorical List of ATL Samples

Page view tracker