> I have the following problem. In Java I have a class named nlo, it
> has as its members three objects of type nla (say nla1, nla2, nla3).
[quoted text clipped - 6 lines]
> (JNIEnv * env,
> jobject obj_this)
This method does not appear to belong to an object of type nlo...
> I have done the code bellow but I can go on since I don't know how
> to access a method of an object that is a member of another.
1. Use FindClass() or GetObjectClass() to get the nlo class.
2. Get the 3 fieldIDs from the nlo class with GetFieldID().
3. Use GetObjectField() to get the 3 object references from an nlo
object.
4. Get the nla class with GetObjectClass() and one of the 3 objects,
or use FindClass().
5. Get the setx() methodID from the nla class with GetMethodID().
6. Invoke setx() on each of the 3 objects, with CallVoidMethod().
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Edsoncv - 17 Aug 2006 15:22 GMT
Perfect, It works. Thanks a lot!!!
> > I have the following problem. In Java I have a class named nlo, it
> > has as its members three objects of type nla (say nla1, nla2, nla3).
[quoted text clipped - 31 lines]
> [ don't email me support questions or followups ]
> g o r d o n + n e w s @ b a l d e r 1 3 . s e