Walkthrough: Creating an ActiveX Control with Attributes
One advantage 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: