I'm trying to create a C# dll that will return an array of objects.
SomeObj[] Func(){...}
The object in question is exposed to COM and I can create it in VB6 with no problem.
When i look at the type library it shows me that the return type is an array of the object in question but when I do the call I get a Type Mismatch in VB
Dim arr() as SomeObj
SomeObj = Func()
I tried this instead: Dim arr as Variant arr = Func()
This does not generate an error and it sees that it's an array but each element is defined as unknown type definition.
Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...