Yep Leledumbo, this time you kill me. Your code is working PERFECTLY and trust me, even at StackOverflow.com, they do not know your trick, there are lot of questions for that without any working answer.
Your GENIUS trick is to export name => Java_MyLib_MyProcedure. I do not know if that could be done with C libraries but here i have a HUGE argument to convert Java developers who need a native library to use fpc instead of C. And for us, fpc developers it is not difficult to adapt the code to be Java full-easy compatible. Leledumbo, i am your fan, forever. Many thanks. Fred PS: Hum, why did you use => env,jcls: pointer; as arguments, is it needed for Java ? I have try without and it works too... ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Access-fpc-libraries-with-Java-tp5718791p5718796.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