470,573 Members | 1,821 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,573 developers. It's quick & easy.

converting system.string[] to BSTR*

Joe
I'm trying to convert system.string[] to a com method that wants a BSTR*, and array of BSTR. Can anyone help?
Nov 16 '05 #1
1 4055
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/U...5-ad09ef3bb37f

--
Scott
http://www.OdeToCode.com

On Wed, 30 Jun 2004 16:18:02 -0700, Joe
<Jo*@discussions.microsoft.com> wrote:
I'm trying to convert system.string[] to a com method that wants a BSTR*, and array of BSTR. Can anyone help?


Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by neutrino | last post: by
5 posts views Thread by Karthik | last post: by
10 posts views Thread by jt | last post: by
2 posts views Thread by Alejandro Aleman | last post: by
reply views Thread by Elmo Watson | last post: by
1 post views Thread by vanisathish | last post: by
8 posts views Thread by tbh | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.