2009-06-24 1 views
0

Ich habe eine Methode erstellt, deren Rückgabetyp eine ArrayList anstelle von List ist. Und ich habe eine COM-Komponente erstellt. Wie kann ich auf diese ArrayList in meiner Hauptanwendung in C++ zugreifen?Wie verwende ich ArrayList in C++?

ex:

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

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

    return al; 
} 

So wie ich diesen Rückgabetyp in C++ behandeln?

+2

Ihre Frage tut keinen Sinn. – gubby

+1

Fast genaues Duplikat von http://stackoverflow.com/questions/1036720/how-to-return-list-from-c-and-use-it-in-vc-through-com – sharptooth

+2

Und wie unterscheidet sich das von http : //stackoverflow.com/questions/1032060/how-to-return-a-collection-of-strings-from-c-to-c-via-com-interop? – sharptooth

Antwort