--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> Is that a suggested dll.call ?
> 
> I did find some values:
> 
> OJBID_NATIVEOM=0xFFFFFFF0
> IID_ITextDocument="{8CC497C0-A1DF-11ce-8098-00AA0047BE5D}"
> 
> I read what I could find in the com and dll plugin docs about using a vtable, 
> but I don't know for the iactivedesktop example, how it was known there 22 
> items and that the one interest was number 17. Assuming I actually had a 
> vtable to work with.
> 

You have to parse the relevant header file, ShlObj.h/Tom.h in the case of 
IActiveDesktop/ITextDocument, as c++ compiler does. Yes, it's cumbersome to do 
manually, that's why you better wait for it wrapped into com.dll when Dispatch 
interface is available. Then, it would be:

objTom = com.AccessibleObjectFromWindow(hwndRichEdit, OBJID_NATIVEOM, 
IID_IDispatch) ;; the third parameter can be optional, defaultly set to 
IID_IDispatch
objTom.BeginEditCollection()
...

Reply via email to