To my great surprise, I recently discovered that I have never yet published anything at all on implementing a Revit add-in in C++.
That is way overdue, so here goes, a step by step description of setting up a C++ project to implement a Revit 2011 external command add-in.
It is very similar to setting up a C# or VB Revit add-in project, similar to the steps described for a C# or VB Revit add-in for Revit 2009 way back in September 2008, and more up-to-date in the Revit DevTV recordings, except we specify C++ instead of C# or VB.
Another detailed step by step description for C# is provided in the Revit SDK developer guide "Revit 2011 API Developer Guide.pdf", in the Chapter 2.2 Walkthrough: Hello World.
So here we go doing the same for C++:
1. In Visual Studio 2008, select File > New > Project... > Visual C++ > Class Library. Define the project location and name, e.g. 'HelloRevitCpp' and click OK:
This generates a number of files:
Read the rest: C++ Revit Add-In