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. COM
  4. Retrive COM Interfaces

Retrive COM Interfaces

Scheduled Pinned Locked Moved COM
com
5 Posts 3 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.
  • B Offline
    B Offline
    benjamin23
    wrote on last edited by
    #1

    Hello. I need to retrive a all Interfaces (methods) and propertyes from a certain COM object i dont know realy where to start... I'm there aren't many sources exept for some Object Browsers but no sources X|

    V L 2 Replies Last reply
    0
    • B benjamin23

      Hello. I need to retrive a all Interfaces (methods) and propertyes from a certain COM object i dont know realy where to start... I'm there aren't many sources exept for some Object Browsers but no sources X|

      V Offline
      V Offline
      vishalmore
      wrote on last edited by
      #2

      Hi benjamin23, OLE/COM Object Viewer gives all inofrmation about the COM object. Go to "Type Library" and double click the COM object you want, it would show you the information about the interfaces/structures that COM object has... Hope this would help you... All the best ! Cheers, Vishal

      1 Reply Last reply
      0
      • B benjamin23

        Hello. I need to retrive a all Interfaces (methods) and propertyes from a certain COM object i dont know realy where to start... I'm there aren't many sources exept for some Object Browsers but no sources X|

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Check ITypeInfo and ITypeLib interface documentation in MSDN for reading all information programatically from the type library. http://msdn.microsoft.com/library/en-us/automat/htm/chap9_49pv.asp[^]* * *

        Have a great day ahead! Regards, Sohail Kadiwala (My Blog - http://blogs.wdevs.com/sohail/[^])

        B 1 Reply Last reply
        0
        • L Lost User

          Check ITypeInfo and ITypeLib interface documentation in MSDN for reading all information programatically from the type library. http://msdn.microsoft.com/library/en-us/automat/htm/chap9_49pv.asp[^]* * *

          Have a great day ahead! Regards, Sohail Kadiwala (My Blog - http://blogs.wdevs.com/sohail/[^])

          B Offline
          B Offline
          benjamin23
          wrote on last edited by
          #4

          The link has been verry userful, still leavme some cuestions: supose i have an instance of "Word.Application" I dont know if ".Visible" exists as a property or even a method, the same could happen to ".WebPagePreview" it's a method but my program doesnt know that i need to retrive the collection of methods and propertyes right before i create the object, this whay i can parse for example a .txt wich contains the methods to call or the variables to set.

          L 1 Reply Last reply
          0
          • B benjamin23

            The link has been verry userful, still leavme some cuestions: supose i have an instance of "Word.Application" I dont know if ".Visible" exists as a property or even a method, the same could happen to ".WebPagePreview" it's a method but my program doesnt know that i need to retrive the collection of methods and propertyes right before i create the object, this whay i can parse for example a .txt wich contains the methods to call or the variables to set.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Hmmm.. I think you are looking for invoking/calling a method or property dynamically. With this assumption, I think the following interface will help solve your problem - IDispatch IDispatch has a method called as GetIDsOfName to which you pass the name of method and it will return you an ID. Using this ID you call another method of IDispatch, namely, Invoke. For more details please check MSDN documentation for IDispatch and its methods. I hope this helps. Let me know if you are looking for anything other than what I assumed.* * *

            Have a great day ahead! Regards, Sohail Kadiwala (My Blog - http://blogs.wdevs.com/sohail/[^])

            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