The invokev method of the Dispatch Class contains the following signatures:
invokev(Object pDispatch, _Guid iid, String dispName, int dispID, int lcid, int wFlags, Variant vArg[], int uArgErr[])
invokev(Object pDispatch, String dispName, int wFlags, Variant vArg[], int uArgErr[], int wFlagsEx)
invokev(Object pDispatch, String dispName, int wFlags, Variant vArg[], int uArgErr[])
invokev(Object pDispatch, int dispid, int wFlags, Variant vArg[], int uArgErr[])
Invokes a method or accesses a property on an ActiveX Automation object. This method is essentially a direct wrapper around the IDispatch::Invoke method.
public static Variant invokev(Object pDispatch, _Guid iid, String , int dispID, int lcid, int wFlags, Variant vArg[], int uArgErr[]);
Returns the Variant returned by the method or property access.
pDispatch | The Java proxy of the ActiveX Automation object. |
iid | The identifier of the interface that is called. If the value is null, it defaults to IID_IDispatch. |
dispName | The name of the method or property that is invoked. If the value is null, dispID is used. |
dispID | The identifier that identifies the method or property; ignored unless dispName is null. |
lcid | The locale ID. |
wFlags | The type of access, which must be Dispatch.Method, Dispatch.Get, Dispatch.Put, or Dispatch.PutRef. |
vArg | The arguments of the method or property. |
uArgErr | An optional one-element array. If an error occurs, uArgErr receives the index of the offending parameter. |
Invokes a method or accesses a property on an ActiveX Automation object. This method is essentially a direct wrapper around the IDispatch::Invoke method. This method is easier to call than the full invokev method. It does not, however, enable you to specify the IID or the locale, and the method must be identified by name.
public static Variant invokev(Object pDispatch, String dispName, int wFlags, Variant vArg[], int uArgErr[], int wFlagsEx);
Returns the variant that is returned by the method or property access.
pDispatch | The Java proxy of the ActiveX Automation object. |
dispName | The name of the invoked method or property. |
wFlags | The type of access, which must be Dispatch.Method, Dispatch.Get, Dispatch.Put, or Dispatch.PutRef. |
vArg | The arguments of the method or property. |
uArgErr | An optional one-element array. If an error occurs, uArgErr receives the index of the offending parameter. |
wFlagsEx | The extended flags that are passed to IDispatchEx. |
Invokes a method or accesses a property on an ActiveX Automation object. This method is essentially a direct wrapper around the IDispatch::Invoke method. This method is easier to call than the full invokev method. However, it does not enable specifying the interface IID or the locale, and the method must be identified by name.
public static Variant invokev(Object pDispatch, String dispName, int wFlags, Variant vArg[], int uArgErr[]);
Returns the Variant returned by the method or property access.
pDispatch | The Java proxy of the ActiveX Automation object. |
dispName | The name of the method or property. |
wFlags | The type of access, which must be Dispatch.Method, Dispatch.Get, Dispatch.Put, or Dispatch.PutRef. |
vArg | The arguments of the method or property. |
uArgErr | An optional one-element array. If an error occurs, uArgErr receives the index of the offending parameter. |
Invokes a method or accesses a property on an ActiveX Automation object. This method is essentially a direct wrapper around the IDispatch::Invoke method. This method is easier to call than the full invokev method. However, it does not enable you to specify the interface IID or the locale, and the method must be identified by dispid.
public static Variant invokev(Object pDispatch, int dispid, int wFlags, Variant vArg[], int uArgErr[]);
Returns the Variant object returned by the method or property access.
pDispatch | The Java proxy of the ActiveX Automation object. |
dispID | The identifier of the method or property. |
wFlags | The type of access, which must be Dispatch.Method, Dispatch.Get, Dispatch.Put, or Dispatch.PutRef. |
vArg | The arguments of the method or property. |
uArgErr | An optional one-element array. If an error occurs, uArgErr receives the index of the offending parameter. |