I have a COM interfcae, which use automation, having the next method:
[id(1), helpstring("method Register")HRESULT Register([in]int iLength, [in, size_is(iLength)] BSTR bstrarrPrms);
The problem is, that when from the client I try to pass the BSTR array, I can see in debug that only the first value of the received array (in the server) match the sent array values. The rest is
something haotic ("???"," ", etc).
I can use only the SAFEARRAY to pass arrays? In this mode doesn't work?
(I got the idea to use this way from the MIDL compiler reference, its more simpliest then using SAFEARRAYs).