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?
Ihre Frage tut keinen Sinn. – gubby
Fast genaues Duplikat von http://stackoverflow.com/questions/1036720/how-to-return-list-from-c-and-use-it-in-vc-through-com – sharptooth
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