I've created a COM wrapper in C# with a method that returns an array of strings:
public string[] GetArrayOfStrings()
{
string[] array = new string[3];
array[0] = "first";
array[1] = "second";
array[2] = "third";
return array;
}
In VB6 I'm calling that method and presenting strings in a list like this:
Dim s() As String
s = obj.GetArrayOfStrings()
For i = LBound(s) To UBound(s)
List1.AddItem s(i)
Next i
Does anyone know how to call that method from Borland C++ and get all elements in the returning array?