svkvvenky
svkvvenky

Reputation: 1120

Related to usage of dll in java

I have a dll which is developed in 'C'.
I need to use it in my Java program.
My problem is like this:
I need to call a function of dll which has structure variable as one of its parameter from java program.
How to do it?
can i pass object as parameter?

Upvotes: 0

Views: 52

Answers (1)

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81724

Your best bet -- given that I suspect this is Windows-only -- is to use JNA, which will let you use the DLL entirely from Java, without writing any custom C code. JNA does indeed handle function objects of struct type, using a special Structure Java class.

Upvotes: 1

Related Questions