I'm having trouble creating the interface in java, because I can not figure out the header of the function in C.
Example Header C function:
CMOEP_API char * CALLCONV CMP_GetLastError( );
Now in java I have this but I do not know how to implement the methods:
public class DllFIles {
public static void main(String[] args) {
CMOEP lib = new CMOEP();
System.out.println("ERRO: " +lib.CMP_GetLastError());
}
}
class CMOEP{
static {
System.loadLibrary("CMOEP");
}
public native char[] CMP_GetLastError( );
// CMOEP_API char * CALLCONV CMP_GetLastError( );
public CMOEP(){}
}
Any ideas / help?