Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1267
  • Last Modified:

How to call VB DLL from JAVA using JNI?

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
rospcc
Asked:
rospcc
2 Solutions
 
marchentCommented:
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
 
rospccAuthor Commented:
we have to use third party tool to link is it? Is there a way to directly call the DLL like C++?
0
 
hoomanvCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now