Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling a vb dll from java

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Please does any one know how to call a vb dll from a java program , ive heard one way to do this is to write a wrapper in C++, call the wrapper from your java program and then this c++ program will call the vb dll, but i don't know C++ and have failed to get this way working.

i'd really appreciate if some one could post up an example or a link to a site that could help.

thanks, ive been trying to fix this problem for far too long already
 
Hi,

From what I know, VB is actually C except that VB has UIs. Please tell me if I am wrong. Since VB is C, you can just load the dlls using System.loadLibrary(). I have not used JNI in anyways so I might be wrong too.

Here are 2 links which might be able to help you out:-


Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Well here is my 2 cents...
I played with JNI for a bit with both C++ and Delphi.
In order for it to work with Delphi all I had to do was hunt down the appropriate files to include with the DLL (which were really just the C++ header files converted into Object Pascal format) and that worked fine. Try seeing if someone has done the same thing for VB. If so then your in luck. Otherwise...well tough luck.

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top