2 messages in net.java.dev.jna.usersRe: [jna-users] Get value of peer att...
FromSent OnAttachments
Fabien MeurisseFeb 6, 2008 8:33 am 
Timothy WallFeb 6, 2008 12:21 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] Get value of peer attribute (Pointer class)Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Feb 6, 2008 12:21:39 pm
List:net.java.dev.jna.users

On Feb 6, 2008, at 11:33 AM, Fabien Meurisse wrote:

I need to get the value of the peer attribute of the Pointer class.

I get a point on an HDC with the following code:

HWND hwnd = new HWND(); hwnd.setPointer(Native.getComponentPointer(this)); HDC dc_l = user32.GetDC(hwnd); Now I want to pass the peer value of HDC to another API. How can I do ?

Make the other API take an HDC as an argument. You can make as many interface methods as you need, providing that they all have unique parameter signatures.