Re: [dev] InterfaceOleWrapper_Impl::Invoke error

2005-05-20 Thread Joachim Lingner
Hi, maybe these lines could be the cause: pPropVar[1].vt = VT_BSTR; pPropVar[1].bstrVal = Lwriter8; You use a wide character string rather then a BSTR. You would have to use SysAllocString(Lwriter8); or use the CComBSTR class from the ATL. Regards, Joachim Zhan Qiufang. wrote: when I call

Re: [dev] InterfaceOleWrapper_Impl::Invoke error

2005-05-20 Thread Zhan Qiufang.
I have changed : CComBSTR bstr2(Lwriter8); pPropVar[1].vt = VT_BSTR; pPropVar[1].bstrVal = bstr2; but the problem still exist - Hi, maybe these lines could be the cause: pPropVar[1].vt = VT_BSTR; pPropVar[1].bstrVal = Lwriter8; You use a wide character

[dev] InterfaceOleWrapper_Impl::Invoke error

2005-05-19 Thread Zhan Qiufang.
when I call uno function through activex, it throw a exception: InterfaceOleWrapper_Impl::Invoke : [automation bridge]UnoConversionUtilitiesT::variantToAny Cannot convert the value of vartype :8201 to the expected UNO type of type class: 12 by debug, I found the Invoke function throw this