Not sure if this should have been posted here or not. Hope it is good enough here.
Have you ever noticed (if you use VS2008 -don't remember about earlier versions-) how you get the value of a CComVariant object (I think VARIANT's too) nicely presented in a tooltip whenever you debug and hover over the variable holding the object? If the VARIANT is VT_DATE, the tooltip shows the date and time nicely formatted; if it is VT_BSTR, you get to see the string contained, etc.
In C#, this tooltip pretty much contains the returned string from the ToString() method. Does anybody know what controls this in C++? I mean, can I make my classes output its value in the tooltip in such a nice way?