Need to call dll without any source code on the dll

Scott Sirovy

There is no way to do it without the header file -- the OS can't perform the dynamic link step between the C code and the JVM unless the interfaces are in synch.

You'll need to create a wrapper .DLL, creating pass-through function calls for each of the native API calls that you are interested in. This works well, but can be tedious if the interface is complex.

We created a FAX server in Java for a client by wrapping an existing FAX server (with an exposed API) in JNI.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact