> Hum, have you a idea how to deal with Pchar and Callback-Procedure ? Welcome to real JNI programming :) For this, you can no longer ignore the first 2 parameters. PChar can't be passed to Java AFAIK (it will violate Java safety rule). However, there's another way around: expect a jstring instead and fill/return the jstring from Pascal (you'll have to use first parameter methods). Callback is possible by passing object implementing required method. All in all, read up JNI tutorial and find JNI wrapper for Pascal. Custom Drawn & Android Module Wizard has JNI wrapper, but they develop each independently and I have no idea which one is better. Choose wisely.
-- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Access-fpc-libraries-with-Java-tp5718791p5718809.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal