7 messages in net.java.dev.jna.usersPointer to double
FromSent OnAttachments
xfloAug 3, 2007 9:28 am 
Timothy WallAug 3, 2007 10:14 am 
"Adrián J.Montero Calvo"Aug 4, 2007 4:16 am.log
xfloAug 4, 2007 12:16 pm.log
Timothy WallAug 8, 2007 8:52 am 
xfloAug 10, 2007 4:04 pm 
xfloAug 11, 2007 12:51 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Pointer to doubleActions...
From:xflo (xf@lycos.es)
Date:Aug 3, 2007 9:28:02 am
List:net.java.dev.jna.users

Hello,

I've a c library with this function

libbest.so double *best(double *x, double *y, double t);

I'm trying to use it so

---------------------------------------------------------------- /*iBest.java*/ import com.sun.jna.*; public interface iBest extends Library{ iBest INSTANCE = iBest Native.loadLibrary("best", iBest.class); double[] best(double[] x, double[] y, double t); }

---------------------------------------------------------------- Sure I'm taking a mistake because I get Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Unsupported return type class [D at com.sun.jna.Function.invoke(Function.java:307) at com.sun.jna.Function.invoke(Function.java:176) at com.sun.jna.Library$Handler.invoke(Library.java:144) at $Proxy0.best(Unknown Source) ...

Can anybody help me? Thanks in advance.