From: priyaAnanthram <sub...@gm...> - 2009-03-23 03:21:47
|
I think I got this working at last but it doesnt seem to work if I have a constructor that is not default i.e I go the below working by having a construcotr like A() but couldnt get it working with the constructor as show below priyaAnanthram wrote: > > Hi There > I am really struggling with this I hope someone can help me > I have a class > A{ > public : > A(int a,int b); > } > > B{ > public : > B(int d,A* a); > } > > where A* is pointer to array of objects of type A. > Now when I generate swig it generates as a object so the posts in this > forum led me to do something like this in the b.i > %include <arrays_java.i> > > JAVA_ARRAYSOFCLASSES(A) > %apply A[] {A *}; > %inline %{ > B(int d,A* s); > %} > > It still doesnt seem to work can anyone please shed some light > -- View this message in context: http://www.nabble.com/Swig-pointer-to-an-array-of-objects-in-c%2B%2B-tp22652214p22653798.html Sent from the swig-user mailing list archive at Nabble.com. |