Article View: borland.public.jbuilder.java.language
Article #17350Re: JNI: supplying parameters to calls into the JVM
From: Nikolaos Giannopoulos
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
30 lines
1375 bytes
1375 bytes
Check out the "tips index" at www.javaworld.com for some articles on JNI --Nikolaos Alan Bellingham wrote: > alanb@episys.com (Alan Bellingham) wrote: > > >OK, first of all, I'm a complete Java novice, but here goes. > > [snip] > > > jstring Temp = ... ; > > jobject RetObj = m_Env->CallObjectMethod(m_Object, ID, Temp ) ; > > However, > > jvalue args[1] ; > args[0].l = Temp ; > jobject RetObj = m_Env->CallObjectMethodA(m_Object, ID, args ) ; > > works. > > Hmmm. I spent I don't know how long hitting my head on this - post the > question, and the problem quietly sidles out of the way. It must have > got scared. > > Alan Bellingham > -- > alanb@episys.com
Technical Details
Message-ID:
<364A619C.2D5C9BF9@solmar.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<364966d2.354927638@forums.borland.com> <364a7018.357301141@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b8090ce4837c71c6 X-Google-Attributes: gidf74b3,public From: Nikolaos Giannopoulos <nikolaos@solmar.ca> Subject: Re: JNI: supplying parameters to calls into the JVM Date: 1998/11/11 Message-ID: <364A619C.2D5C9BF9@solmar.ca> X-Deja-AN: 410960083 Content-Transfer-Encoding: 7bit References: <364966d2.354927638@forums.borland.com> <364a7018.357301141@forums.borland.com> To: alanb@episys.com X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Solmar Solutions Inc. Mime-Version: 1.0 Reply-To: nikolaos@solmar.ca Newsgroups: borland.public.jbuilder.java.language