When To Implement: Ioleobject
When To Implement: Ioleobject
When To Implement: Ioleobject
An object application must implement this interface, along with at least IDataObject and IPersistStorage, for each type of embedded object that it supports. Although this interface contains 21 methods, only three are nontrivial to implement and must be fully implemented: DoVerb, SetHostNames, and Close. Six of the methods provide optional functionality, which, if not desired, can be implemented to return E_NOTIMPL: SetExtent, InitFromData, GetClipboardData, SetColorScheme, SetMoniker, and GetMoniker. The latter two methods are useful mainly for enabling links to embedded objects. When to Use This interface is not supported for use across machine boundaries.
Call the methods of this interface to enable a container to communicate with an embedded object. A container must call DoVerb to activate an embedded object, SetHostNames to communicate the names of the container application and container document, and Close to move an object from a running to a loaded state. Calls to all other methods are optional. Methods in VTable Order
AddRef
Decrements reference count. Description Informs object of its client site in container.
GetClientSite
SetHostNames
Close
SetMoniker
GetMoniker
InitFromData
GetClipboardData
DoVerb
EnumVerbs
Update
Updates an object.
IsUpToDate
GetUserClassID
GetUserType
SetExtent
GetExtent
Advise
Unadvise
EnumAdvise
GetMiscStatus
SetColorScheme