|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|
Walkthrough: Creating an ActiveX Control with Attributes
One strength of programming with attributes is the ease of constructing a basic framework of usable code. With this model, designing an ActiveX control is made easier by using attributes.
In addition to the attributes themselves, several Visual C++ tools take advantage of attributes. When designing an ActiveX control, the ATL Project Wizard and ATL Simple Object Wizard use attributes to develop a basic framework for an ActiveX control. The procedure consists of the following steps:
- Creating the ActiveX Control Project
- Inserting the ATL Control Component
- Adding a Property Using Attributes
- Adding an Event Using Attributes