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
Printable View
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
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?