Description of properties / methods for COM libraries

If you create COMClass, I noticed that the values ​​in the XML Summary tag do not appear in the VB6 / VBA Object Explorer when you reference the resulting tlb file. Is there any way to show these values?

+4
source share
1 answer

No, the 12 years of the evolution of IntelliSense prevent it from working. XML documentation comments generate an XML file that IntelliSense can pick up. In VB6 / A, documentation is present in the type library with the helpstring attribute. For instance:

[ odl, uuid(2334D2B1-713E-11CF-8AE5-00AA00C00905), hidden, dual, nonextensible, oleautomation ] interface IVBDataObject : IDispatch { [id(0x00000001), helpstring("Clears all data and formats in a DataObject object."), helpcontext(0x00033693)] HRESULT Clear(); // etc... }; 

To get the same information from your [ComVisible] class library, the [Description] attribute is required. Check out this answer for a quirk about how it works for properties.

+4
source

All Articles