10 messages in net.java.dev.jna.usersRe: [jna-users] Constants defined in ...
FromSent OnAttachments
Timo HoepfnerNov 20, 2008 5:50 am 
Timothy WallNov 20, 2008 6:22 am 
Timo HoepfnerNov 20, 2008 7:10 am 
Timothy WallNov 20, 2008 7:33 am 
LYou...@gkservices.comNov 20, 2008 7:53 am 
Timo HoepfnerNov 20, 2008 2:58 pm 
Scott PalmerNov 27, 2008 7:10 am 
Stefan EndrullisNov 27, 2008 7:38 am 
Scott PalmerNov 27, 2008 8:22 am 
Daniel KaufmannNov 27, 2008 10:05 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: [jna-users] Constants defined in libraryActions...
From:Timothy Wall (twal@dev.java.net)
Date:Nov 20, 2008 7:33:10 am
List:net.java.dev.jna.users

Structure.useMemory(Pointer), followed by Structure.read(), if necessary.

On Nov 20, 2008, at 10:11 AM, Timo Hoepfner wrote:

Hi Timothy,

Use NativeLibrary.getGlobalVariableAddress(String name). This will give you a pointer to the value, so you'll need to use Pointer.getXXX(0) to obtain the actual value of the "constant".

Thanks a lot!

But how I can get from the Pointer to a Structure subclass? Here's what I have by now: