473,487 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 4180
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
16072
by: neutrino | last post by:
Greetings to the Python gurus, I have a binary file and wish to see the "raw" content of it. So I open it in binary mode, and read one byte at a time to a variable, which will be of the string...
5
48624
by: Karthik | last post by:
Hello, How can I convert a BSTR data type to std::string??? Thanks a much! Karthik
10
2349
by: jt | last post by:
I'm needing to take a binary string start at a certain position and return a pointer from that postion to the end of the binary stirng. something like this: char bstr; char *pos; ...
1
2036
by: Jim | last post by:
Hi I am using mixed mode C++ and I wonder.... How could I convert a BSTR to a System::Object* type Cheers,
2
5009
by: Alejandro Aleman | last post by:
Hello! i know this may be a newbie question, but i need to convert a string from System::String^ to char*, in the msdn page tells how, but i need to set to /clr:oldSyntax and i dont want it...
0
1943
by: Elmo Watson | last post by:
I am having all kinds of problems with a Stored Proc I'm trying to run, with the error I'm getting above. First - the way I'm reading it - the database EXPECTS a TinyInt - and it thinks I'm...
1
2999
by: vanisathish | last post by:
Hi, How do i convert the VC++ BSTR to String datatype in VB .NET Thanks Vanitha
0
1433
by: swapnamishra | last post by:
Hi . I have an method called Execute that returns a byte stream 88146131202020202020. But python accepts the return value as unicode as u'\u1211\u2b08' Is there someway by which I can convert...
8
9285
by: tbh | last post by:
for historical reasons i need to be able to call, from C# under DotNet 2, as COM+ DLL function that returns a "string" which is really an array of seemingly arbitrary bytes (presumably non-zero)....
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.