dcsimg
JNI: how to use GetStringChars ??
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gaelle_SMITS
Posted On:   Monday, April 29, 2002 01:16 AM

Hi ! I'm trying to use JNIs and I find it kinda hard ! Here's a portion of my code, I want to put a jstring (called PathFichiers) in a C char array (called path_temp) : static char path_temp[255]={0}; /*global variable*/ const jchar* str; str=(*env)->GetStringChars(env, PathFichiers, 0); path_temp=str; (*env)->ReleaseStringChars(env, PathFichiers,0); I get an error sayingthat my left operande is not a lvalue. Can someone explain me what's wrong with it ? Thanks, Gaelle.    More>>

Hi !

I'm trying to use JNIs and I find it kinda hard !

Here's a portion of my code, I want to put a jstring (called PathFichiers) in a C char array (called path_temp) :

static char path_temp[255]={0}; /*global variable*/

const jchar* str;

str=(*env)->GetStringChars(env, PathFichiers, 0);

path_temp=str;

(*env)->ReleaseStringChars(env, PathFichiers,0);

I get an error sayingthat my left operande is not a lvalue.

Can someone explain me what's wrong with it ?

Thanks,

Gaelle.

   <<Less
About | Sitemap | Contact