

Implements a tear-off interface of a collection/enumeration of BSTRs.
Simpleimage how to#
Shows how to create and maintain SAFEARRAYs using CComSafeArray also how to pass SAFEARRAYs from a component to script.ĭemonstrates using CComAutoThreadModule Class. Plays CD audio tracks and displays information about the tracks in tooltips and a pie chart display.Ĭreates a control that demonstrates property pages and draws a circle.īuilds a control that implements custom properties, events, property pages, and object safety.ĭemonstrates the use of ICollectionOnSTLImpl and CComEnumOnSTL, and the implementation of custom copy policy classes. Illustrates how ATL COM objects can be used in an MFC server EXE.ĭemonstrates how to build a windowed control using ATL. Shows how to use a thread pool in an application and how implementing a thread pool can improve the application's performance.ĭemonstrates how to call a COM object (implemented in a Windows service) from multiple clients, running on different machines. Illustrates the implementation and use of connection points (the IConnectionPointContainer and IConnectionPoint interfaces) in a multithreaded environment.

Shows how to use the ATL security classes to examine security settings.ĭisplays the output generated by the ATLTRACE2 macro. ATL samples ATL samples - Advanced Sample nameĭemonstrates how to implement an Active Document Server.ĭownloads data asynchronously from a URL.Ĭreates a button that displays itself with three different bitmaps depending on its state.ĭemonstrates using connection points with ATL controls.
Simpleimage code#
Microsoft provides this sample code "AS IS" with no warranties. We recommend that you add security and error-handling code to make your projects more secure and robust. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept.
