COleDispatchDriver::SetProperty

Sets the OLE object property specified by dwDispID.

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

Parameters

  • dwDispID
    Identifies the property to be set.

  • 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.

Example

void IMyComObject::SetString(DISPID dispid, LPCTSTR propVal)
{
    SetProperty(dispid, VT_BSTR, propVal);
}

Requirements

Header: afxdisp.h

See Also

Reference

COleDispatchDriver Class

Hierarchy Chart

COleDispatchDriver::InvokeHelper

COleDispatchDriver::GetProperty

Other Resources

COleDispatchDriver Members