• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI - Return an Object Array to C++  RSS feed

 
Ayaan Dar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a requirement to call a java function from c++ that return an array of a class. My class is of

Class ProfileSample{
String a;
String b;
};

I then populate an array of this call at send to a native function ? How can i recieve this array in my c++ function ? Can anyone please show me the code ?
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:...although it's certainly possible that it's structures might help you out.

And it seems I'm right - at least according to this page.

Never tried it though.

Winston

[Edit] and managed to delete my previous reply in the process. Damn 'Edit' key...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!