9 messages in net.java.dev.jna.usersRe: [jna-users] Re: C++ StdCallFuncti...
FromSent OnAttachments
Ewan SlaterApr 8, 2008 10:45 am 
Timothy WallApr 8, 2008 11:15 am 
Paul MooreApr 8, 2008 11:50 am 
Albert StrasheimApr 8, 2008 1:26 pm 
Ewan SlaterApr 9, 2008 12:44 am 
Timothy WallApr 9, 2008 3:53 am 
Ewan SlaterApr 9, 2008 11:44 am 
Timothy WallApr 9, 2008 7:32 pm 
Timothy WallApr 9, 2008 7:32 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] Re: C++ StdCallFunctionMapperActions...
From:Timothy Wall (twal@dev.java.net)
Date:Apr 9, 2008 7:32:23 pm
List:net.java.dev.jna.users

StdCallFunctionMapper should be appending @0, so if your mapper is not returning that, you're not using StdCallFunctionMapper.

I get lookup failures if an underscore is prepended, even though the underscores show up in the symbol table.

On Apr 9, 2008, at 2:44 PM, Ewan Slater wrote:

Hi,

Overrode the getFunctionName method to print out what was coming back, and then added (hardcoded) the prefix "_" and suffix "@0", and then it works:

<output> StdCallFunctionMapper.getFunctionName() returned :fnJNICaller VisualCPPStdCallFunctionMapper.getFunctionName() returned :_fnJNICaller@0 </output>

Hope this helps.

Cheers,

Ewan