import com.sun.jna.Library; import com.sun.jna.Native; public interface className extends Library { className INSTANCE = (className) Native.loadLibrary(dll路径, className.class); int interfaceName(String A, String B, MyStructure.ByReference ref); }
ByReference ref = new ByReference(); Integer state = className.INSTANCE.interfaceName(A, B, ref); //ref.(c++的接口的输出结果参数名称),获取结果
转载于:https://www.cnblogs.com/yanduanduan/p/10190974.html
相关资源:java使用(jna)调用c/c 第三方动态库 dll文件 所用jar包