3 messages in net.java.dev.jna.usersRe: [jna-users] mapping question - c dll
FromSent OnAttachments
Willits, JeffreyFeb 16, 2009 12:01 pm 
Timothy WallFeb 16, 2009 2:03 pm 
Willits, JeffreyFeb 17, 2009 6:39 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] mapping question - c dllActions...
From:Timothy Wall (twal@dev.java.net)
Date:Feb 16, 2009 2:03:03 pm
List:net.java.dev.jna.users

On Feb 16, 2009, at 3:01 PM, Willits, Jeffrey wrote:

Hi, new to the list. I like the JNA package and have had very little troubles getting it to work with general dlls that I have OR with dlls that I've written. However, I'm attempting to access a third party dll. Unfortunately, the functions in the dll are in the format: _<function>@<bytes>

This is standard stdcall name mangling. The StdCallFunctionMapper will appropriately mangle for you. StdCallLibrary defines a constant, FUNCTION_MAPPER, that you can use when initializing your library as the function mapper option (OPTION_FUNCTION_MAPPER). See User32/ Kernel32 for examples of initializing a library with options.