9 messages in net.java.dev.jna.users[jna-users] Re: [QUAR] RE: [jna-users...
FromSent OnAttachments
Dario CardosoJun 30, 2008 8:03 am 
Paul LoyJun 30, 2008 8:10 am 
Paul LoyJun 30, 2008 8:15 am 
Dario CardosoJun 30, 2008 8:17 am.dll
Paul LoyJun 30, 2008 8:21 am 
Dario CardosoJun 30, 2008 8:35 am.zip
Paul LoyJun 30, 2008 8:52 am 
Michael Brewer-DavisJun 30, 2008 9:43 am 
Dario CardosoJun 30, 2008 9:43 am.zip
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:[jna-users] Re: [QUAR] RE: [jna-users] pass LPCTSTR type in JNAActions...
From:Michael Brewer-Davis (mich@tech4learning.com)
Date:Jun 30, 2008 9:43:11 am
List:net.java.dev.jna.users

Dario Cardoso wrote:

This function don't work with JNA LlSetOptionString

Paul Loy wrote:

note: there are normally A or W versions of functions requiring LPCTSTR. The A(SCII) version requires String and the W(ide) version requires

WString.

As Paul notes, there is no "LlSetOptionString" in your DLL (see http://dependencywalker.com/). There are functions "LlSetOptionStringA" and "LlSetOptionStringW".

You can either either: - use one of these explicitly in your function definitions, or - have your library extend W32API instead of Library--this will use the W32APIFunctionMapper and look for the appropriate version for you.

See the examples in the source package (e.g., com.sun.jna.examples.win32.Shell32) for a full demo.