I tried your solutions, but I think I really did not understand correctly ... But I solved my problem using this:
import com.sun.jna.ptr.IntByReference;
I called the C function as in my Java program:
IntByReference myVoidPointerPointer = new IntByReference(); myCLibrary.myCFunction(myVoidPointerPointer);
The C function "myCFunction" looks like this:
void myCFunction(void** parameter);
Can this be done? This works, but I was wondering if this is the right thing to do.
source share