IGetOleObject::GetOleObject method (vbinterf.h)

Gets a pointer to an OLE control on a Visual Basic container.

Note  The use of this method is no longer recommended because containers other than Visual Basic do not support it.
 

Syntax

HRESULT GetOleObject(
  [in]  REFIID riid,
  [out] LPVOID *ppvObj
);

Parameters

[in] riid

Specifies the interface to retrieve. Pass IID_IOleObject to obtain a pointer to the control.

[out] ppvObj

Pointer to the control.

Return value

This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:

Requirements

Requirement Value
Target Platform Windows
Header vbinterf.h

See also

IGetOleObject