1

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?

1

2 Answers 2

3

Use JNI, Load your dll and call native functions

See

Sign up to request clarification or add additional context in comments.

Comments

3

In Java there's basically two good options for this: (in order of recommendation)

  1. 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.
  2. Write JNI bindings for your DLL (there'll be some Java and some C++ code involved).

1 Comment

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++

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.