'in vb IX1 is the default IDispath Interface,and IX2 has the methods
Set obj1 = New C.IX1
Dim obj2 As IX2
Set obj2 = obj1
Dim str() As String
Dim i As Integer
str=obj2.GetName
For i = 0 To UBound(str)
Print str(i)
Next
obj2.SetName str
Set obj2= Nothing
Set obj1 = Nothing
// in vc idl file
[id(1), helpstring("method SetName")] HRESULT SetName([in] SAFEARRAY(BSTR)* arr);
[id(2), helpstring("method GetName")] HRESULT GetName([out,retval] SAFEARRAY(BSTR)* arr);