0

I have created a method who's return type is an ArrayList instead of List. And I have created a COM component. How do I access this ArrayList in my main application which is in C++?

ex:

 ArrayList fun1() 
 {
    ArrayList al = new ArrayList();

    al.Add("one");
    al.Add("two");

    return al;
 }

So how do I handle this return type in C++?

3

1 Answer 1

1

Check how-to-return-list-from-c-and-use-it-in-vc-through-com or how-to-return-a-collection-of-strings-from-c-to-c-via-com-interop

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.