Create class object in DLL with Java

The third part DLL contains the class definition in C language, which I will use in Java I have a complete understanding of public methods in DLL Now with these, I'm a little using wrapper C program, which creates objects and calls functions in DLL when needed I use JNI to connect this C code to Java There are no other effective ways to do this This is to create an object of a class and use its functions directly using JNI or any other library in Java

Solution

In order to call native (C / C + +) code from Java, you will have to group objects between native and Java, which is what JNI does, and your method is just right for me

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>