Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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::InvokeHelper
COleDispatchDriver::GetProperty