Instantiating the ActiveX value object

To instantiate the ActiveX value object and access its custom methods:

  1. Call CoCreateInstance() with a CLSID of CLSID_OPAQUE and an IID of IID_RawObjectAccess to create an empty ActiveX value object.
  2. Pass the raw object data to the SetDataC() method to fill the ActiveX value object.
  3. Use QueryInterface() to get the IID for the IDispatch interface (IID_IDispatch).
  4. Use IDispatch::Invoke() to access the custom methods of the ActiveX value object.

Copyright© 2019 HCL Technologies Limited