Passing a Safearray in an event
Assuming psa is an array of BSTRs,
SAFEARRAY *psa;
VARIANT var;
V_VT(&var) = VT_BSTR | VT_ARRAY;
V_ARRAY(&var) = psa;
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat, and
wrong." H.L. Mencken
Quote:
> I am trying to pass a safearray in my Fire_ event without much success.
> What is the correct way to convert the array to a variant so that I can
call
> IDispatch->Invoke()??
> Thanks