Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I've created a COM wrapper in C# with a method that returns an array of strings:
C#
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:
VB
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?
Posted
Comments
The_Inventor 3-Oct-13 4:29am    
Are you under the impression that 'string[]' is the same as 'String'?

1 solution

Remy Lebeau solved my problem. Here is the link
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900