is DISPID_VALUE reliable for invokes on IDispatchs from scripts?

后端 未结 4 792
一整个雨季
一整个雨季 2021-01-13 08:33

Continuing from this question, i am confused whether DISPID_VALUE on IDispatch::Invoke() for script functions and properties (JavaScript in my case

4条回答
  •  Happy的楠姐
    2021-01-13 09:22

    The default method or property that DISPID_VALUE invokes should be consistent for a given interface. That method/property has to be specified as DISPID_VALUE in the definition of the interface in the IDL for the type library. The only way it could change is if the owner of the interface released a new version of the interface that changed which method/property was the default but that would violate a fundamental rule of COM interfaces.

提交回复
热议问题