Subramanya
asked on
JNI- How to convert jstring to normal string(LPCTSTR)?
Hi I have a java client which talks to JNI wrapper,which intern calls c++ application.
In jni i want to convert jstring to normal string(LPCTSTR).
how to do that?
Regards
Hegde
In jni i want to convert jstring to normal string(LPCTSTR).
how to do that?
Regards
Hegde
const char *str = (*env)->GetStringUTFChars( env, yourJString, 0);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Hegde
Hegde
:-)