[fpc-pascal] Access fpc libraries with Java ?

fredvs fiens at hotmail.com
Sat Mar 29 20:59:05 CET 2014


>> OK, i will try to implement JStringToString() function (or find the
conversion-solution)... 

Done =>

function JStringtoString(PEnv: PJNIEnv; Obj: JObject; JavaStr: JString) :
String; 
var
 ifcop : pjboolean;
begin
result  := (PEnv^).GetStringUTFChars(PEnv, JavaStr, ifcop);
end;

He, he, he, ... now the last obstacle : Callback procedures... and Java is
in the pocket for fpc libraries...

PS => lot of things to add in fpc wiki ;-)

Fred



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Access-fpc-libraries-with-Java-tp5718791p5718821.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list