Summary

Attributes exist to simplify the development cycle by decreasing the time you spend programming repetitive tasks while increasing the time you have to program the real logic within your application. The use of attributes also reduces a lot of the clutter within source files and consolidates related pieces of code in one file, which helps with the readability of code.

In this hour, you learned how attributes are resolved during the build process and how to view the injected code afterward using a compiler switch or through debugging. You also saw firsthand how attributes have greatly simplified ATL development and reduce common coding mistakes that could happen. Just as project wizards simplified creating the initial projects in the beginning, ...

Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.