3 messages in net.java.dev.jna.usersRe: [jna-users] Mapping to long refer...
FromSent OnAttachments
Emmanuel PirschSep 8, 2008 11:49 am 
Timothy WallSep 8, 2008 12:14 pm 
Emmanuel PirschSep 8, 2008 12:19 pm 
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: [jna-users] Mapping to long reference...Actions...
From:Emmanuel Pirsch (emma@pirsch.org)
Date:Sep 8, 2008 12:19:37 pm
List:net.java.dev.jna.users

Thanks! I did not saw the NativeLongByReference class (guess I should change my glasses). I may eventually run this thing on Linux, so I will use NativeLongByReference.

On Mon, Sep 8, 2008 at 3:15 PM, Timothy Wall <twal@dev.java.net> wrote:

There's a NativeLongByReference that would be appropriate. If you're never going to use anything but Windows, IntByReference would also work, since a "long" is 32 bits on win32 and win64.

On Sep 8, 2008, at 2:50 PM, Emmanuel Pirsch wrote:

Hi,

From the FAQ, we should never use long for mapping a native long.

I have an API that take an unsigned long &value (it's on Windows). Do I need to map this as an IntByReference or a LongByReference. Will the LongByReference, use the proper long native type (32 bits on Windows)?