Setting a VB6 Collection to a .NET Collection

G

google

I am developing an ASP.NET application and calling a COM object to
access functions within an internally active application.
I am able to set most properties within the COM object class, but
cannot set the VB6 collection to the .NET collection.

The property is in VB6 as follows:

Public Property Let MyCol(ByVal Value As Collection)
Set colMyCol = Value
End Property

The code in the asp.net page is as follows: (Note that colInfo has the
same properties as MyCol):

Dim objX as object
objX = Server.CreateObject("VB6DLL.VB6CLASS")

If Not Session("MyCol") Is Nothing Then
objX.MyCol = colInfo
End If

Basically, I'm looking for a known way to map a collection from .NET
back to VB6.

Thanks,
Kevin
 
G

Guest

What's being stored in the collection, is it a intrinsic...? I think you'll
have to iterate through the VB6 collection and copy the children to the .Net
types manually.
 

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