Quoting Richard Drummond ([EMAIL PROTECTED]):
> Hi
>
> I'm interested in using DirectFB from Java. I'm fairly new to JNI, but one
> problem that struck me was how to maintain a mapping from native pointers
> (which track native objects such as IDirectFBWindow objects) and their Java
> counterparts. The problem being, of course, that the native pointer could be
> 32 or 64 bits depending on what platform you're running on in, and Java
> provides no datatype for handling pointers.
>
> I've just taken a look at the kawt code from the DirectFB CVS, and it seems to
> me that you are just assuming native pointers are always 32 bits. For
> example:
>
> void
> Java_java_awt_Toolkit_wndToBack ( JNIEnv* env, jclass clazz, jint nativeHandle
> )
> {
> IDirectFBWindow *wnd = (IDirectFBWindow*) nativeHandle;
> DEBUGMSG(__FUNCTION__"\n");
>
> wnd->LowerToBottom( wnd );
> }
>
> Since a jint is always 32 bits, this will only work on 32-bit platforms.
> Right? Or am I missing something?
That's right, it won't work for 64 bit pointers yet.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
Convergence GmbH
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.