Export (0) Print
Expand All

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.

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

Community Additions

ADD
Show:
© 2014 Microsoft