Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Using Java or C methods in Delphi XE5


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Sep 8, 2014 8:29 AM Last Post By: Steven Wiberg
Steven Wiberg

Posts: 28
Registered: 3/6/12
Using Java or C methods in Delphi XE5  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 5, 2014 3:35 PM
Hi All,

I have a project that I am working on and am getting close to being finished; however, I have now hit a brick wall.

The 3rd party I am working with has an encryption method that they require I use; however, they only support C and Java, but the thing is my project is in windows VCL and I need a way to invoke these functions.

Are there any tutorials on how to do something like this and have it work properly, I have been searching the forums and google for a while now and have found nothing useful in how to do this.

Any help would be greatly appreciated.

Thanks in advance
Peter Below

Posts: 1,227
Registered: 12/16/99
Re: Using Java or C methods in Delphi XE5  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 6, 2014 12:39 AM   in response to: Steven Wiberg in response to: Steven Wiberg
Steven Wiberg wrote:

Hi All,

I have a project that I am working on and am getting close to being
finished; however, I have now hit a brick wall.

The 3rd party I am working with has an encryption method that they
require I use; however, they only support C and Java, but the thing
is my project is in windows VCL and I need a way to invoke these
functions.

Are there any tutorials on how to do something like this and have it
work properly, I have been searching the forums and google for a
while now and have found nothing useful in how to do this.

Any help would be greatly appreciated.

Thanks in advance

If the encryption code is supplied as a standard DLL with a C header
file as description of the interface it is usually no problem at all to
write an equivalent Delphi unit to use that DLL. You can find some
useful information here: http://rvelthuis.de/articles/, especially the
article "Pitfalls of converting".

If you cannot get this going post the header file you need converted
here. I'm sure somebody here will be able to help you along.

--
Peter Below (TeamB)

Steven Wiberg

Posts: 28
Registered: 3/6/12
Re: Using Java or C methods in Delphi XE5  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2014 8:29 AM   in response to: Peter Below in response to: Peter Below
Peter Below wrote:
Steven Wiberg wrote:

Hi All,

I have a project that I am working on and am getting close to being
finished; however, I have now hit a brick wall.

The 3rd party I am working with has an encryption method that they
require I use; however, they only support C and Java, but the thing
is my project is in windows VCL and I need a way to invoke these
functions.

Are there any tutorials on how to do something like this and have it
work properly, I have been searching the forums and google for a
while now and have found nothing useful in how to do this.

Any help would be greatly appreciated.

Thanks in advance

If the encryption code is supplied as a standard DLL with a C header
file as description of the interface it is usually no problem at all to
write an equivalent Delphi unit to use that DLL. You can find some
useful information here: http://rvelthuis.de/articles/, especially the
article "Pitfalls of converting".

If you cannot get this going post the header file you need converted
here. I'm sure somebody here will be able to help you along.

--
Peter Below (TeamB)


Thanks.

I will contact them and see if this is a possibility.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02