How to access a DLL file in java?

I have some methods in a Visual Basic 6.0 DLL that I need to access in Java 6.0. How do I do this?

Answers


The Java Native interface is your friend. But the easier way should be using the Java Native Access library. Here's an answer to a similiar question.


JNI can be easily used to access any function publicly available in a DLL (managed or unmanaged) so that it can be used in java.

You will need to create your own interface, using Java Native Interface (JNI), and then call the interface functions as you normally do.


Need Your Help

how to test open graph on localhost

testing facebook-graph-api localhost

I've done a lot of research and haven't found a definitive answer to this. Is there anyway to test the open graph on localhost? I don't haven any issues using the graph api on locahost.

Passing objects in to Fragments

android fragment android-bundle

I've been working with lots of Fragments recently and have been using two distinct methods of passing in objects to the Fragments, but the only difference that I can see is that in the approach tak...