Passing vb collection from C# to VB6

G

Guest

Hi there!
I'm having this problem and I'm not finding the solution for this.
I have a COM (VB6), that receives in a method a variant paramater. But this
parameter is treated internally as a collection. And I have a C# component
that is trying to pass this paramater to VB6. What do I have to do in C# to
pass this parameter so that my VB6 COM understand it as a collection?

Thanks for now!
Tércio
 
N

Nicholas Paldino [.NET/C# MVP]

Tercio,

You will have to set a reference to msvbvm60.dll (which is the Visual
Basic 6 runtime). This will import the Collection class for you, and you
can pass that to your COM component.

It will show up under the COM tab (under Visual Basic for Applications)
when adding a reference.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top