Fast2001.ocx

if (SUCCEEDED(hr)) { // Get the control's IDispatch interface CComPtr<IDispatch> pDispatch; hr = pUnk.QueryInterface(IID_IDispatch, (void**)&pDispatch);

if (SUCCEEDED(hr)) { // Invoke a method or access a property on the control DISPPARAMS params; params.cArgs = 0; params.rgvarg = NULL; params.cNamedArgs = 0; params.rgdispidNamedArgs = NULL; fast2001.ocx

#include <windows.h> #include <atlcom.h> if (SUCCEEDED(hr)) { // Get the control's IDispatch