Please help on how to access subobject in the object in JNI

Joined
Oct 10, 2011
Messages
1
Reaction score
0
Hi All
I have an issue I have been in trouble with.

On java side, I have A and B classes:
class A
{
int i;
B bobject;
}

class B
{
int i;
String s;
}

class Interface
{
public native int passToC( A aobject);
}

On JNI side I want to pass the fields in the class A to C side for function call. The question how to access the field with class B?

Please give some suggestions, thank you very very much.:adore:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top