parse object array into string....
-
hi experts, I hav create a COM DLL using VC++6.0 application.which has a function :
[id(13), helpstring("method LngGenSuggW")] HRESULT LngGenSuggW([in]BSTR pwIpIscii,[out]VARIANT *pawSuggArray);
and my client application is in C# 2005. which is as follows:
**COM_INSPELLLib.ComInSpell objCom = new COM_INSPELLLib.ComInSpell();
String sIpWord;
object sSuggArray = new object() ;objCom.LngGenSuggW( sIpWord, out sSuggArray);**
and I got the sSuggArray with the answer return by COM DLL. which contains "3 strings" means string array. but the problem is object does not contain any method to get these string back. Is there any method or solution?? that converts or parse this object array sSuggArray into String array and so that I can use it for further procedure. please help me.. I try it.. but cant done.. waiting for ur valuable reply.. thanx & regards, Victory.:thumbsup:
-
hi experts, I hav create a COM DLL using VC++6.0 application.which has a function :
[id(13), helpstring("method LngGenSuggW")] HRESULT LngGenSuggW([in]BSTR pwIpIscii,[out]VARIANT *pawSuggArray);
and my client application is in C# 2005. which is as follows:
**COM_INSPELLLib.ComInSpell objCom = new COM_INSPELLLib.ComInSpell();
String sIpWord;
object sSuggArray = new object() ;objCom.LngGenSuggW( sIpWord, out sSuggArray);**
and I got the sSuggArray with the answer return by COM DLL. which contains "3 strings" means string array. but the problem is object does not contain any method to get these string back. Is there any method or solution?? that converts or parse this object array sSuggArray into String array and so that I can use it for further procedure. please help me.. I try it.. but cant done.. waiting for ur valuable reply.. thanx & regards, Victory.:thumbsup:
If you know you're going to return 3 strings, why not just return an array of BSTRs, instead of VARIANT ?
-
hi experts, I hav create a COM DLL using VC++6.0 application.which has a function :
[id(13), helpstring("method LngGenSuggW")] HRESULT LngGenSuggW([in]BSTR pwIpIscii,[out]VARIANT *pawSuggArray);
and my client application is in C# 2005. which is as follows:
**COM_INSPELLLib.ComInSpell objCom = new COM_INSPELLLib.ComInSpell();
String sIpWord;
object sSuggArray = new object() ;objCom.LngGenSuggW( sIpWord, out sSuggArray);**
and I got the sSuggArray with the answer return by COM DLL. which contains "3 strings" means string array. but the problem is object does not contain any method to get these string back. Is there any method or solution?? that converts or parse this object array sSuggArray into String array and so that I can use it for further procedure. please help me.. I try it.. but cant done.. waiting for ur valuable reply.. thanx & regards, Victory.:thumbsup: