Passing a UDT RRS feed

  • Question

  • Hi there,

    I have an issue.

    I have a vb6 dll that i am using from a vb.net 2005 program, the dll passes back a UDT Array.

    I cannot get the vb.net application to accecpt the UDT array.

    Has anyone got any pointers on this or how to do it?

    Cheers in advance.

    Saturday, October 28, 2006 1:05 PM


  • What happens when you try?

    I've tried a simple case:

    VB6 code:

    Type goo
     x As Integer
    End Type

    Function foo() As goo()
        Dim x(5) As goo
        foo = x
    End Function

    VB 2005 Code:

    Module Module1

    Sub Main()

    Dim x As New Project1.Class1

    Dim y() As Project1.goo

    y = x.foo

    End Sub

    End Module

    And didn't see any problems.

    Tuesday, October 31, 2006 11:22 PM