CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Enumerating Methods and Properties

    Hi
    How do I able to get list of properties, methods and their IDs provided by an OCX?
    I have the pointers to control's IDispatch and IUnknown.
    Which Interfaces and Functions I need to use to get those lists ?

    Thank you


  2. #2
    Join Date
    May 1999
    Posts
    2

    Re: Enumerating Methods and Properties

    Hi

    You can call GetIDsofNames() to get the dispid of the property that u need. Then call Invoke() to read or write the property value. These 2 functions belong to the IDispatch interface.

    To call a function, QueryInterface(() to get the interface pointer, and using it call the functions.

    Is this what u wanted to know? Or are u planning to implement an object browser and you want to read the type library?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured