I have a DLL file mostly written in vb.net It will take 2 parameters. I am suppose to make use of this DLL in my java code and pass required 2 parameters. How should I go about it?
2 Answers
In Java there's basically two good options for this: (in order of recommendation)
- If your DLL has C function headers (rather than C++ decorations), you should use JNA. It has a simple, declarative syntax and only requires writing some Java.
- Write JNI bindings for your DLL (there'll be some Java and some C++ code involved).
1 Comment
user1570824
Hi Mark, as I stated in my first post, DLL is a pure vb.net code. So I should go abt having JNI. Any samples you have to know wat exactly needs to be done in C++