C# + COM Advanced Question
-
Hi Coders, I have a C# application that lists the functions in a COM object via reflection. My COM object has very useful descriptions for each function defined in it's IDL using the 'helpstring' attribute, such as:
[id(24), helpstring("Here is the function description.")]
I am desperately trying to find a way of getting this text in the C# application via reflection. Is this possible? Is there a Platform API function I can PInvoke to get a COM function's description? Have been investigating for a while but to no avail, any help would be much appreciated! Thanks in advance, Dave -
Hi Coders, I have a C# application that lists the functions in a COM object via reflection. My COM object has very useful descriptions for each function defined in it's IDL using the 'helpstring' attribute, such as:
[id(24), helpstring("Here is the function description.")]
I am desperately trying to find a way of getting this text in the C# application via reflection. Is this possible? Is there a Platform API function I can PInvoke to get a COM function's description? Have been investigating for a while but to no avail, any help would be much appreciated! Thanks in advance, DaveYou can use the
ITypeLib
(orITypeInfo
) interface to retrieve this information via the GetDocumentation[^] method."WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
modified on Monday, March 22, 2010 6:53 AM
-
You can use the
ITypeLib
(orITypeInfo
) interface to retrieve this information via the GetDocumentation[^] method."WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
modified on Monday, March 22, 2010 6:53 AM