Instantiating the ActiveX value object
About this task
To instantiate the ActiveX value object and access its custom methods:
Procedure
- Call CoCreateInstance() with a CLSID of CLSID_OPAQUE and an IID of IID_RawObjectAccess to create an empty ActiveX value object.
- Pass the raw object data to the SetDataC() method to fill the ActiveX value object.
- Use QueryInterface() to get the IID for the IDispatch interface (IID_IDispatch).
- Use IDispatch::Invoke() to access the custom methods of the ActiveX value object.