Returning char array from c++
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ajit_roy
Posted On:   Wednesday, November 9, 2005 05:20 AM

Hi,

I am calling a c++ function from java.The function is returning int or char but it is not reurning int array or char array or string.It is giving some JVM error or arrayindex outof bound exception.I want to know ,is it the drowback of JNI or there some error in my code?

Re: Returning char array from c++

Posted By:   Anonymous  
Posted On:   Friday, November 25, 2005 07:06 AM


JNI has the capability to return raw bytes, array of raw bytes. In c++ convention, arrays and array of arrays.

Only thing is to learn the implementation from JNI guide from sun. An example is already provided w.r.t arrays.

All the Best !!



~ravinder.
About | Sitemap | Contact