Click to See Complete Forum and Search --> : Enumerating Methods and Properties


April 6th, 1999, 11:59 AM
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

liza
April 22nd, 1999, 06:11 AM
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?