Passing Array of Strings as BSTR*
-
Hi Folks, I am trying to access a java webservice from Visual C++ .NET. This java webservice has following method. public void CreateDoc(String[][] values); When I add webreference to this webservice in my visual studio .net environment, it changes the method to look like as following. HRESULT CreateDoc(BSTR* arrayOfarrayOfString_1, int arrayOfarrayOfString_1_nSizeIs); So, now in my visual c++ code, I have to pass a string array in this above format of BSTR*. I have tried a lot achieving this but no success ! Can anyone give me some idea how to do that ? Thanks in advance, Arun.
-
Hi Folks, I am trying to access a java webservice from Visual C++ .NET. This java webservice has following method. public void CreateDoc(String[][] values); When I add webreference to this webservice in my visual studio .net environment, it changes the method to look like as following. HRESULT CreateDoc(BSTR* arrayOfarrayOfString_1, int arrayOfarrayOfString_1_nSizeIs); So, now in my visual c++ code, I have to pass a string array in this above format of BSTR*. I have tried a lot achieving this but no success ! Can anyone give me some idea how to do that ? Thanks in advance, Arun.
Are you using
SafeArrayAccessData
before manipulation the BSTR* array? Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain) -
Hi Folks, I am trying to access a java webservice from Visual C++ .NET. This java webservice has following method. public void CreateDoc(String[][] values); When I add webreference to this webservice in my visual studio .net environment, it changes the method to look like as following. HRESULT CreateDoc(BSTR* arrayOfarrayOfString_1, int arrayOfarrayOfString_1_nSizeIs); So, now in my visual c++ code, I have to pass a string array in this above format of BSTR*. I have tried a lot achieving this but no success ! Can anyone give me some idea how to do that ? Thanks in advance, Arun.