This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Calling vb component resides on windows from java on unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Calling vb component resides on windows from java on unix" Watch "Calling vb component resides on windows from java on unix" New topic

Calling vb component resides on windows from java on unix

Atul Agarwal

Joined: Apr 15, 2005
Posts: 6

I would like to ask what could be the possible approaches to call from java a vb dll that incorporates an active x component which links to another(third party) application. The reason I am doing this is because I haven't got the API of that application in Java so I have to go round it using the VB activex.

So eventually the vb dll will incorporate the third party active x and the
calls to that active x together with functions and properties for the java
application which will return data to java for processing.

If anyone know how to do this or something similar with a VB dll and java I
will appreciate it if he/she contacts me.

VB dll is on windows machine and the java program would be on Unix.

Thanks for your time

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
One approach would be for some VB code to listen on a socket for data transmitted by the Java app. This would probably involve a lot of manipulation of data at the byte[] level.

A higher level approach would be to have the VB expose a SOAP or XML-RPC service that the Java app could communicate with.

How complex is the data you are getting back via the VB connection?

Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Apparently, you can do CORBA with Visual Basic. See here. Java does CORBA, too, so this could be a way to make the two communicate.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

I would think CORBA would be the best way. Of course you can always install Java on the windows box and call java from the unix box to the windows box. and let the local windows app invoke the DLL.
I agree. Here's the link:
subject: Calling vb component resides on windows from java on unix
Similar Threads
calling a VB dll from java program
calling ocx methods in C
Difference between agile and XP?
Using JNI dll from Java
How to issue command in Java program