Click here to Skip to main content
13,598,183 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
I have a string array like
{"myname","yourname","hisname"}
and I am trying to send this array to C with using JNI. I could not find any clear solution for this. I have tried to take this string as a chararray but no success.

Is there a way to do this?
Posted 22-Mar-15 0:39am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

It is not really clear what the issue is, but I suggest you take a look at https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/jniTOC.html[^], which explains how to pass different types between Java and C/C++.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180621.3 | Last Updated 22 Mar 2015
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100