Recieiving an arrray from VB
- From: "Jake" <jakethedog317@xxxxxxxxx>
- Date: 29 Nov 2006 08:04:29 -0800
Hello,
I have a c++ program that passes information to a VB dll both in .net
Currently I get back a _bstr_t value for a single string. What I would
like to do is get back an array of strings from VB in order to account
for large amounts of data.
My questions are as follows
How do I define my return value as an array in c++ so that I define my
return value properly?
Since Im a c and c++ programmer I have only ever done arrays that call
a dll in the same language and as such Im used to having to define a
structure in the calling program that is also defined in the dll and I
pass back the address of the structure to the calling program from the
dll
Would my array still be defined as a _bstr_t or would it be defined
differently?
Will the returned array be in VB format that I will have to convert to
c strings?
Is it better to get back a string and parse through the string and
create my array on the c++ side?
Also the reverse is also in question - How do I pass an array to VB.
I have seen several examples of sending information to c++ from VB but
nothing really on sending information to VB from c++ where I get an
array returned
Can someone help me better understand this process?
Thanks
Jake
.
- Follow-Ups:
- Re: Recieiving an arrray from VB
- From: MrAsm
- Re: Recieiving an arrray from VB
- From: Brian Muth
- Re: Recieiving an arrray from VB
- Prev by Date: Possible MSVC8 bug?
- Next by Date: Re: class layout and dummy template parameter
- Previous by thread: Possible MSVC8 bug?
- Next by thread: Re: Recieiving an arrray from VB
- Index(es):
Relevant Pages
|
Loading