Winterdom
In Visual C++ 2005, XML comments a la C# are now supported for managed code. You introduce an XML comment with ///, like the example below:

/// <summary>
/// This represents a person with a name
/// </summary>
public ref class Person
{
public:
   /// <summary>
   /// First name of the person
   /// </summary>
   property String^ FirstName;
   /// <summary>
   /// Family name of the person
   /// </summary>
   property String^ LastName;

   // ...
};
To generate the comments XML file file, you'll use the new /doc switch of the compiler. You can use it with no arguments, in which case it will generate an XML file with the same name as the file you're compiling and the .xdc extension, or you can explicitly name it:

cl /clr:safe /LD /doct.xdc t.cpp
Here's the resulting XML file for this example:

<?xml version="1.0"?>
<doc>
   <members>
      <member name="T:Person" decl="false" source="e:\temp\t.cpp" line="6">
         <summary>
         This represents a person with a name
         </summary>
      </member>
      <member name="M:Person.get_FirstName" decl="false" source="e:\temp\t.cpp" line="12">
         <summary>
         First name of the person
         </summary>
      </member>
      <member name="M:Person.get_LastName" decl="false" source="e:\temp\t.cpp" line="16">
         <summary>
         Family name of the person
         </summary>
      </member>
   </members>
</doc>
.: tomasr | 2004-10-10 18:41:33 :.