开发者

How to access a DLL file in java?

I have some methods in a Visual Basic 6.0 DLL that I nee开发者_如何学Pythond to access in Java 6.0. How do I do this?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜