drift_的博客经过折腾,确定,在java中定义...不能用int *,因为jna的IntByReference.getValue()只能返回一个值 }; 在java中的定义为 public static class Location extends Structure{ public int nums; public int[] arr=new
3. **调用DLL函数**:在你的主程序中,你可以直接通过`MyDllLibrary.INSTANCE.addNumbers(a, b)`来调用DLL中的函数。例如: ```java public class Main { public static void main(String[] args) { int result ...