Reputation: 1120
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
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