Forum Stats

  • 3,874,142 Users
  • 2,266,672 Discussions


C++ version of JNI

843829 Member Posts: 49,201
edited Sep 15, 2010 7:35PM in Java Native Interface (JNI)
so hi basically really confused and new to jni. um basically i have in C

jstring str;
char * str1 = getStringhere(); // this just returns a char* of a string in a another // function i created
str = str1;

and this works but once i changed it to c++ it says almost the exact same thing
i get an error like cannot convert char* to _jstring*

it worked for C y not c++


This discussion has been closed.