F
flack
I'm a newby about JNI.
I have an application write in C++ and I have to migrate it to Java.
I have seen that JNI permit to call c++ methods that return only
primitive type as string or int.
My question is simple: if I have a C++ class that we call "ClassA", can
I instance an object "ClassA" in Java that run the constructor and
where can I call the methods of "ClassA" as I was in C++?
I want something like this in Java:
jClassA a;
jClassB b
b = h.methodClassA(int d);
Can I do that?
Thank you!
I have an application write in C++ and I have to migrate it to Java.
I have seen that JNI permit to call c++ methods that return only
primitive type as string or int.
My question is simple: if I have a C++ class that we call "ClassA", can
I instance an object "ClassA" in Java that run the constructor and
where can I call the methods of "ClassA" as I was in C++?
I want something like this in Java:
jClassA a;
jClassB b
b = h.methodClassA(int d);
Can I do that?
Thank you!