This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Where to find a CNI-Tutorial?
- From: Andrew Haley <aph at redhat dot com>
- To: Mohan Embar <gnustuff at thisiscool dot com>
- Cc: Clemens Eisserer <linuxhippy at web dot de>, Cedric Berger <cedric at berger dot to>, java at gcc dot gnu dot org
- Date: Tue, 26 Aug 2003 14:34:38 +0100
- Subject: Re: Where to find a CNI-Tutorial?
- References: <3F4B5A18.80307@berger.to><C0T3YPECPK082XDBOKIG4WPK32C008.3f4b6138@p733>
Mohan Embar writes:
> HI Cedric,
>
> >> 2.) Is there a platform-independent way to store pointer-values in
> >> java variables using CNI. With JNI this isnt possible as far as I
> >> know, because storing pointer-values into "int" only works of cource
> >> on 32-bit machines....
> >
> >Then why not storing them into "long"?
>
> This doesn't work. Under Win64, for example, a void* is 64 bits
> but a long is still 32 bits.
No; he's talking about a jlong.
Andrew.