Debugging COM Interface objects
Does anyone know how to see the contents of a COM interface object with the Visual Studio C++ debugger? I hope I'm calling these things the right name.
Your editor is actually querying the IDispatch interface (or the ITypeInfo interface off of the IDispatch interface) for its implementation details (methods, documentation, parameters, types, etc).
I think I wasn't clear about what editor I meant. I meant that when I'm writing code, NOT debugging, the autocomplete feature of VS .NET can show me the list of methods and attributes available in the class.
I assume that what you want is to be able to see the methods/properties on an object that supports IDispatch while you're debugging. The debugger doesn't support that, because it involves a lot of work with querying IDispatch and ITypeInfo.
"I offered the interpreter so that you could test creating an object, getting it into whatever state you need, and looking at its property values at runtime (since that sounds like what you're trying to do)."
Brad Wilson (dotnetguy.techieswithcats.com)
Actually a bit more research and I may have found the answer to my own question. Those interface classes (I guess they are OLE Automation interfaces) have no exposed attributes. All they have published methods, including getters and setters. From what I can see in the headers, there aren't even private attributes.
David, that's what I said! God's not the only one who knows how to do it (unfortunately).
Fog Creek Home