Extending JScript
By Paul Butcher
Dr. Dobb's Journal January 1999
IDispatch* pdisp; HRESULT hr = m_pfnCreateObject(pdp, &pdisp); if(SUCCEEDED(hr)) { pvarRes->vt = VT_DISPATCH; pvarRes->pdispVal = pdisp; }
Example 2: Passing a pointer to the parameters passed to the constructor.
Copyright © 1999, Dr. Dobb's Journal