|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|
Attributed Programming Concepts
Visual C++ includes a variety of material to help you use attributes in your programs. Attributes, a new feature in Visual C++, are designed to simplify COM programming and .NET Framework common language runtime development. When you include attributes in your source files, the compiler works with provider dynamic-link libraries (DLL) to insert code or modify the code in the generated object files. There are attributes that aid in the creation of .idl files, interfaces, type libraries, and other COM elements. In the integrated development environment (IDE), attributes are supported by the wizards and by the Properties window.
While attributes eliminate some of the detailed coding needed to write COM objects, you need a background in COM fundamentals to best use them.
In This Section
- Purpose of Attributes
Presents an overview of attributed programming.
- Basic Mechanics of Attributes
Describes how attributes work in your project.
- Building an Attributed Program
Provides information about using C++ compiler options in your project.
- Attribute Categories
Provides links to the categories of attributes used in Visual C++.
- Attributes Walkthroughs
Provides links to walkthroughs showing you how to use attributes in different settings.
- Attribute Programmming FAQ
Answers frequently asked questions about attributed programming.