[438] in java-interest
Converting C strings to Java Strings
daemon@ATHENA.MIT.EDU (Jason Weiler)
Wed Jun 21 22:03:50 1995
Date: Wed, 21 Jun 1995 18:42:00 -0700
From: weilerj@std.teradyne.com (Jason Weiler)
To: java-interest@java.sun.com
I'm trying to convert an array of C-strings to an Array of java strings.
This whole process needs to be done in C.
I allocate the needed strings in Java with:
strs = new String[number];
I then send this array into the C-code as an ArrayOfString*.
My problem comes in when I try to use MakeString() to convert the C-strings
over. MakeString() returns a ArrayOfChar* which doesn't sit well with the
compiler.
I was assuming that an ArrayOfString was merely an array of ArrayOfChar
Can someone clue me in.
Thanks,
Jason
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com