2 messages in net.java.dev.jna.usersRe: [jna-users] char** in the returne...
FromSent OnAttachments
ArgynJun 25, 2008 3:22 pm 
Timothy WallJun 26, 2008 11:32 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] char** in the returned StructureActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jun 26, 2008 11:32:08 am
List:net.java.dev.jna.users

On Jun 25, 2008, at 6:22 PM, Argyn wrote:

i call a method which returns me a struct like {char** foo; int size;}

i know the size of string array.

if i create a structure with String[] field, it complains that the field is not initialized. if i do byte[][], it crashes.

so, i put Pointer field in the structure, then i manipulate the Pointer to get to my strings. is there a nice way fo handling this simple situation?

Feel free to file an RFE to automagically map String[] fields within a structure in some particular way. Be sure to define all details of usage as well as read/write behavior.