Solved

How to call VB DLL from JAVA using JNI?

Posted on 2006-11-03
3
1,183 Views
Last Modified: 2012-08-13
Hi,

Can we call a VB DLL from Java? Probably using JNI? I tried using JNI to call C++ DLL, but not VB. I'm not sure whether it would be quite complicated to do that. I need some guidance from you guys. Thanks.


Regards,
rospcc
0
Comment
Question by:rospcc
3 Comments
 
LVL 13

Assisted Solution

by:marchent
marchent earned 250 total points
ID: 17872724
u can do this using jacob, a third party tools, download from http://sourceforge.net/projects/jacob-project/
here some sample code http://danadler.com/jacob/

~marchent~



0
 

Author Comment

by:rospcc
ID: 17872826
we have to use third party tool to link is it? Is there a way to directly call the DLL like C++?
0
 
LVL 14

Accepted Solution

by:
hoomanv earned 250 total points
ID: 17873054
If you know how to call the functions of that dll through C++, then its not hard as you can wrap all those functions accrording to the JNI paradigm to create a C++ dll which acts as an interface between Java and the original VB dll

Java <--> JNI DLL< --> VB DLL
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now