|
-
April 6th, 1999, 11:59 AM
#1
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
-
April 22nd, 1999, 06:11 AM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|