aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes invoking a method in an existing vb dll from java servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "invoking a method in an existing vb dll from java servlet" Watch "invoking a method in an existing vb dll from java servlet" New topic
Author

invoking a method in an existing vb dll from java servlet

Tanveer Rameez
Ranch Hand

Joined: Dec 11, 2000
Posts: 158
Hi,
I have a vb dll with a method. The method is say:
quoteMortgageProtection(ByVal strInsurerList as String,
ByVal dteLife1DOB as Date,
ByVal intLife1AgeNextBirthday as Integer,
ByVal dblIntrestRate as Double)

and return type is String.
Note again this is a DLL created in VB.

Now I have a servlet class that needs to invoke this method passing the arguments and the method returns it a string.
How can I do it? I know I have to use jni, but in case of jni, the native program is created based on a header file created after i run the javah on the java class. This is not possible here coz I have the vb dll (no code) and cannot rewrite it.
Please let me know what should I do? Also since the method is to be invoked from the servlet running in tomcat 5, will there be any security issue?
thankx
Tanveer
[ August 19, 2004: Message edited by: Tanveer Rameez ]

Author of JPhotoBrush Pro (www.jphotobrushpro.com)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invoking a method in an existing vb dll from java servlet
 
Similar Threads
Invoking methods within a DLL written in VB
Sending a string from vb to java servlet
Java and activeX ?
calling a VB dll from java program
Calling VB Dll In JAVA