i wrote set of c++ classes , created dll exports 1 of these c++ classes. need instantiate exported c++ class in java class. possible?
i searched web possible solution, have found solutions using jna or jni import c++ functions only.
yes, can instantiate c++ class java.
one way swig, can generate java wrappers c++ classes.
for example, given c++ class this:
class myclass { public: myclass(); int mymethod( int arg ); }
swig allows write java code this:
myclass myclass = new myclass(); int val = myclass.mymethod( 42 );
Comments
Post a Comment