6 messages in net.java.dev.jna.usersRe: call by reference of double array
FromSent OnAttachments
Mr Young-soo SongFeb 29, 2008 1:38 am 
Timothy WallMar 2, 2008 6:16 am 
Mr Young-soo SongMar 3, 2008 7:42 pm 
Timothy WallMar 4, 2008 5:42 am 
Mr Young-soo SongMar 5, 2008 12:24 am 
Timothy WallMar 5, 2008 6:24 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:Re: call by reference of double arrayActions...
From:Mr Young-soo Song (ysso@yahoo.co.kr)
Date:Mar 3, 2008 7:42:08 pm
List:net.java.dev.jna.users

Thanks for your answer. But I couldn't get the right value yet. I'd like to get the double array output from DLL by calling by reference. If you provide any sample code of doing this. It would be great to understand how to use it.

Could you give me a example for Memory or DoubleBuffer?

Date: Sun, 02 Mar 2008 09:16:29 -0500 From: Timothy Wall <twal@dev.java.net> Content-type: text/plain; charset=UTF-8; format=flowed; delsp=yes Subject: [jna-users] call by reference of double array

If this is a COM DLL (that uses variants and safe arrays), you might be better off using JACOB, com4j or JAWIN, which know how to handle the various COM types.

However, if all you need is "double*" (which is what ByRef/Double nominally means), you can pass "double[]", "DoubleByReference" (if it's a single element), "com.sun.jna.Memory" (of the appropriate size), or java.io.DoubleBuffer (also of the appropriate size).