[java] JNI
any of you guys use Java Native Interface before?
i need to code a buncha classes in C++, but the gui is in Swing, so i need to use JNI. is it doable for the java to manipulate the C++ classes? (all i''ve seen is c++ methods manipulating java members, but i need it the other way around)
a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k
You cannot effect C++ methods directly, but have to do so indirectly.
You will have to make a method in Java declared native and then in C++ implement this method. The method in C++ should then call the C++ class member.
All this is pretty detailed explained in the report I wrote. There is a recent posting in this forum about it.
Jacob Marner
You will have to make a method in Java declared native and then in C++ implement this method. The method in C++ should then call the C++ class member.
All this is pretty detailed explained in the report I wrote. There is a recent posting in this forum about it.
Jacob Marner
Jacob Marner, M.Sc.Console Programmer, Deadline Games
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement