File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Other JSE/JEE APIs
CHAR** and JNA mapping
Joined: Aug 21, 2004
Mar 12, 2010 10:26:05
I'm very new to JNA and have just succeded in some simple samples. I
now have this function in my h file
__declspec(dllexport) ADK_ERROR __stdcall AdkGetStr(ADK_DATA* pData,
INT iFieldId, CHAR** ppsValue, INT iLen);
Jnarator project set this up as
ByValue AdkGetStr(ADK_DATA pData, int iFieldId, PointerByReference
ppsValue, int iLen);
The ADK_DATA works already since I have used it in oth calls but I
can't succeed to map the CHAR**. I don't know how to use the
This is what I've got so far.
PointerByReference ref = new PointerByReference();
ByValue b = lib.AdkGetStr(pData, 12, ref , 16);
I have tested a lot of different values for iLen but it should be 16
that is returned is max 16 characters. Any pointers?
I agree. Here's the link:
subject: CHAR** and JNA mapping
can the following code produces Null pointer exception?
code to handle arabic shaping text
Problem with a return with SAX
Need light-weight base64 encoder and decoder for MIDlet
Socket Write Issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014