1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Library/ActiveX JNI Wrapper for Delphi and FreePascal

Discussion in 'Delphi Programming' started by peterf, Jul 6, 2015.

  1. peterf
    Offline

    peterf DF Junior

    This JNI Wrapper for Delphi and FreePascal provides a powerful and simplified object-oriented API for doing mixed language programming in Java and Delphi (Object Pascal language) or FreePascal. This may provide an easier and more productive way of getting Win32 and Win64 features in Java projects and integrating legacy code (at least for the Delphi or FreePascal community). Please read the readme file inside the zip file to learn more.

    I have noticed that JNIWapper for Delphi and FreePascal was not supporting returning of String and Arrays types from Java, so i have implemented that and i have now enhanced JNI Wrapper to be very powerful , so it's now supporting all the necessary functions and methods and and much more... hope you will happy with it cause i have worked hard to bring this new 2.82 to you, it is really now a professional software of a good quality.

    Also i have enhanced more JNI Wrapper and ported it to 64 bit and to both FreePascal and the Delphi XE versions, here is the functions that i have implemented and added:

    function JstringArrayToDTStrings(jarr : JArray) : TStrings;
    function JdoubleArrayToDdoubleArray(jarr : JdoubleArray) : TDdoubleArray;
    function JfloatArrayToDsingleArray(jarr : JFloatArray) : TDsingleArray;
    function JcharArrayToDwordArray(jarr : JCharArray) : TDwordArray;
    function JbyteArrayToDshortintArray(jarr : JByteArray) : TDshortintArray;
    function JshortArrayToDsmallintArray(jarr : JShortArray) : TDsmallintArray;
    function JbooleanArrayToDbooleanArray(jarr : JBooleanArray) : TDbooleanArray;

    And don't forget to call TJavaVM.freeRef() method from Delphi or FreePascal when you need to garbage collect and free the memory that was allocated.

    For: FPC Pascal v2.2.0+ / Delphi XE+
    Hidden Content:
    **Hidden Content: You must click 'Like' before you can see the hidden data contained here.**
    Cheers,

    Peter
     
    Last edited by a moderator: Apr 19, 2019
    hamsoft, Lgogo, hujiacheng and 2 others like this.
  2. mm2061
    Offline

    mm2061 DF Member

    Could U repost the component please ?
    Thanks
     
  3. farhandriz
    Offline

    farhandriz DF Member

    Yes please Repost to component sir is broken or missing
     
  4. peterf
    Offline

    peterf DF Junior

    Sorry chaps, source is gone. Admin could you close this post please?
     
  5. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    Link updated!
     

Share This Page