Quick reply would be appreicated.
Thanks in advance.
Samagna
> I need to call a function that is there in a C++ dll. The arguments to
> the function are STRUCT and string.
You can't, I'm afraid. Java does not have the ability to call arbitrary code
from an arbitrary DLL, nor does it understand 'structs'.
So you have to be a bit more indirect. What you will have to do is write your
own C or C++ code which follows the JNI conventions, and which therefore /can/
be called from Java, and then call the other DLL from that.
The Sun JNI tutorial at:
http://java.sun.com/docs/books/tutorial/native1.1/index.html
should get you started on JNI programming. It's not difficult if you keep it
simple, and it doesn't sound as if you need to do anything very complicated for
these purposes.
-- chris