2 messages in net.java.dev.jna.users[jna-users] char** in the returned St...
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:[jna-users] char** in the returned StructureActions...
From:Argyn (jawa@gmail.com)
Date:Jun 25, 2008 3:22:12 pm
List:net.java.dev.jna.users

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?

thanks