Forum Stats

  • 3,852,827 Users
  • 2,264,140 Discussions
  • 7,905,155 Comments

Discussions

C++ version of JNI

843829
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++

Comments

This discussion has been closed.