2 messages in net.java.dev.jna.usersRe: [jna-users] stdcall help
FromSent OnAttachments
Gene GlickMar 13, 2008 10:39 am 
Timothy WallMar 13, 2008 5:05 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] stdcall helpActions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 13, 2008 5:05:16 pm
List:net.java.dev.jna.users

extend StdCallLibrary instead of Library. The interface indicates the calling convention.

On Mar 13, 2008, at 1:40 PM, Gene Glick wrote:

sorry if this message repeated, I may have had trouble subscribing. hi,

how do I call a function that requires _stdcall? Here's the C stuff: void _stdcall Out32(short PortAddress, short data)

here's where the .dll gets loaded: public interface ioLibrary extends Library{ ioLibrary INSTANCE = (ioLibrary)Native.loadLibrary("inpout32",ioLibrary.class); }

I read in the archives
(https://jna.dev.java.net/servlets/ReadMsg?list=users&msgNo=69 ) about using StdLibrary.FUNCTION_MAPPER , but it's not clear to me.

regards