is DISPID_VALUE reliable for invokes on IDispatchs from scripts?
        Posted  
        
            by Georg Fritzsche
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Georg Fritzsche
        
        
        
        Published on 2009-11-05T15:35:06Z
        Indexed on 
            2010/05/18
            9:10 UTC
        
        
        Read the original article
        Hit count: 248
        
Continuing from this question, i am confused whether DISPID_VALUE on IDispatch::Invoke() for script functions and properties (JavaScript in my case)  can be considered standard and reliable for invoking the actual function that is represented by the IDispatch?
If yes, is that mentioned anywhere in MSDN?
Please note that the question is about if that behaviour can be expected, not what some interfaces i can't know in advance might look like.
A simple use case would be:
// usage in JavaScript
myObject.attachEvent("TestEvent", function() { alert("rhubarb"); }); 
// handler in ActiveX, MyObject::attachEvent(), C++
incomingDispatch->Invoke(DISPID_VALUE, IID_NULL, LOCALE_SYSTEM_DEFAULT,
                         DISPATCH_METHOD, par, res, ex, err);
edit: tried to clarify the question.
© Stack Overflow or respective owner