G Guest Jul 1, 2004 #1 I'm trying to convert system.string[] to a com method that wants a BSTR*, and array of BSTR. Can anyone help?
I'm trying to convert system.string[] to a com method that wants a BSTR*, and array of BSTR. Can anyone help?
S Scott Allen Jul 2, 2004 #2 Hi Joe: Since you have not gotten any response here, let me throw out two ideas: For BSTR*, try passing the string as a ref parameter, i.e. foo.ComMethod(ref MyString); and for an array of BSTR, try a string[] type. BTW, you might try CLR Spy if the code still gives you trouble: http://www.gotdotnet.com/Community/...mpleGuid=c7b955c7-231a-406c-9fa5-ad09ef3bb37f
Hi Joe: Since you have not gotten any response here, let me throw out two ideas: For BSTR*, try passing the string as a ref parameter, i.e. foo.ComMethod(ref MyString); and for an array of BSTR, try a string[] type. BTW, you might try CLR Spy if the code still gives you trouble: http://www.gotdotnet.com/Community/...mpleGuid=c7b955c7-231a-406c-9fa5-ad09ef3bb37f