Passing vb collection from C# to VB6

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top