Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# + COM Advanced Question

C# + COM Advanced Question

Scheduled Pinned Locked Moved C#
questioncsharpcomjsonhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dave Kerr
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • D Dave Kerr

      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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      You can use the ITypeLib (or ITypeInfo) 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

      D 1 Reply Last reply
      0
      • P Pete OHanlon

        You can use the ITypeLib (or ITypeInfo) 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

        D Offline
        D Offline
        Dave Kerr
        wrote on last edited by
        #3

        That's great, thanks!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups