You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Java Native Access
Dear sir,
I have a struct
struct test{
char *pCarrierName;
}
And the following is the JNA Equivalent-
public static class Test extends Structure {
public Pointer pCarrierName;
public test( Pointer pCarrierName) {
super();
this.pCarrierName = pCarrierName;
}
}
Now i want to pass java String argument like this-
Test ob = new Test("Dry Air");
But it throws error because here i passed Java String and the
Constructor of Test Class Accept a pointer. How can i convert "Dry Air
" String as a Pointer and Pass into the Test Class Constructor.
Timothy Wall
unread,
Mar 3, 2012, 12:46:56 PM3/3/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jna-...@googlegroups.com
Use "String" as the structure field type rather than Pointer.