My understanding has always been that Java is Java, and as such =
shouldn't be calling into libraries in other languages as this defeats =
one of the fundamental principles - platform independance.
However, the only method I'm aware of is using the Java Native Interface =
(JNI), which allows this process to take place. You'd probably have to =
implement it through a JavaBean which your JSP can access. The Sun spec =
is at;
http://java.sun.com/products/jdk/1.2/docs/guide/jni/spec/jniTOC.doc.html
As far as I know it has a whole range of methods for passing different =
data types between Java and other languages, but I don't know enough =
about it to know whether you'd have to adjust your NT DLL to communicate =
or not.
Rgds
Tom
-----Original Message-----
From: Sylvain Roche <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, April 09, 1999 2:59 PM
Subject: library interfacing
I've developped a JSP site with a database interface. What I need now is to
call a function of an external library DLL on Win NT.
I tried to load it via the LoadLibrary function of the System object, but I
didn't seem to work.
I'd really appreciate if someone could help me :
1) how to load it, and how to pass it to the Application object
2) how to call the function (BTW, it uses some char pointers, so how could I
translate these to Strings)
Thanks in advance
Sylvain
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".