Attribute Programming with ATL

Now you're going to get into some code and learn firsthand how attributes save you a lot of time and headaches. For the first lesson, you are going to create an ATL project consisting of one ATL object. You will then create a small Microsoft Foundation Classes (MFC) application which uses that object.

To begin, open the New Project dialog by clicking New, Project from the File menu. Select Visual C++ Projects from the list of project types on the left and select the ATL Project template from the list on the right. Give your project the name ATLAttributes and click OK to close the dialog.

You'll notice that the ATL Project Wizard dialog doesn't contain a lot of options compared to some other projects. However, if ...

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.