COleDispatchDriver::SetProperty

void SetProperty(DISPID dwDispID, VARTYPE vtProp, ... );

Parameters

dwDispID

Identifies the property to be set. This value is usually supplied by ClassWizard.

vtProp

Specifies the type of the property to be set. For possible values, see the Remarks section for COleDispatchDriver::InvokeHelper.

...

A single parameter of the type specified by vtProp.

Remarks

Sets the OLE object property specified by dwDispID.

Example

void IMyComObject::SetString(LPCTSTR propVal)
{
    SetProperty(0x1, VT_BSTR, propVal);
}

COleDispatchDriver OverviewClass MembersHierarchy Chart

See Also   COleDispatchDriver::InvokeHelper, COleDispatchDriver::GetProperty