?
Solved

How to call VB DLL from JAVA using JNI?

Posted on 2006-11-03
3
Medium Priority
?
1,229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Assisted Solution

by:marchent
marchent earned 750 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 750 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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