2 messages in net.java.dev.jna.usersstdcall 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:stdcall helpActions...
From:Gene Glick (ggl@aps-tech.com)
Date:Mar 13, 2008 10:39:41 am
List:net.java.dev.jna.users

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