Walkthrough: Creating an ActiveX Control with Attributes
Visual Studio .NET 2003
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