Хочу узнать про функцию InvokeHelper()
On 2002-08-27 2333, quasar1983 wrote
Тебе для какого класса надо для CWnd, COleDispatchDriver, COleControlSite.
Для CWnd.
On 2002-08-28 1223, Doomych wrote
[quote]
On 2002-08-27 2333, quasar1983 wrote
Тебе для какого класса надо для CWnd, COleDispatchDriver, COleControlSite.
Для CWnd.
[/quote]
Служит для управления ActiveX
void AFX_CDECL InvokeHelper(
DISPID dwDispID <>,
WORD wFlags <>,
VARTYPE vtRet <>,
void* pvRet <>,
const BYTE* pbParamInfo <>,
... <>
);
Parameters
dwDispID
Identifies the method or property to be invoked. This value is usually supplied by Component Gallery.
wFlags
Flags describing the context of the call to IDispatchInvoke. For possible wFlags values, see IDispatchInvoke in the Platform SDK.
vtRet
Specifies the type of the return value. For possible values, see the Remarks section for COleDispatchDriverInvokeHelper <_mfc_coledispatchdriver.3a3a.invokehelper.htm>.
pvRet
Address of the variable that will that will receive the property value or return value. It must match the type specified by vtRet.
pbParamInfo
Pointer to a null-terminated string of bytes specifying the types of the parameters following pbParamInfo. For possible values, see the Remarks section for COleDispatchDriverInvokeHelper.
...
Variable List of parameters, of types specified in pbParamInfo.