PDA

Click to See Complete Forum and Search --> : Invoking a VB app from another application


wisegb
Mar 19th, 2007, 02:13 PM
Hi,

I would like to have my VB6 application inter-operate with another application.
The other application is a java-based application running on another machine. So I have been looking at DCOm and related java-2-com bridges such as j-interop and Jintegra.

The VB application has a user interface e.g., textboxes, etc. I would like the other java-based app to be able to send messages to my VB app so that it may update it's UI in some way (update a text box or list box for example).

My question is can I create a COM object on the VB side and then have the other application invoke methods on that already existing object? I have seen examples on how to create a new instance of a COM object, but that is not what I want. I want to be able to create an object via VB and then somehow expose that object to the other app.

Or is there a simpler way to do this?

Thanks
Bowden

gtilles
Mar 19th, 2007, 05:22 PM
How about via ports or sockets calls.

wisegb
Mar 19th, 2007, 05:27 PM
Ports or sockets ... a possibility, I suppose, but seems low-level and fragile to me ..

I would like to know if there is a COM solution for what I am trying to do.

Or other distributed computing technique -- .NET remoting?

You COM experts out there -- have you done any JAVA / VB inter-op?

Bowden

Al42
Mar 20th, 2007, 05:32 PM
Ports or sockets ... a possibility, I suppose, but seems low-level and fragile to me ..IE keeps failing when you access web pages - via ports and sockets? :)

I would like to know if there is a COM solution for what I am trying to do.

Or other distributed computing technique -- .NET remoting?

You COM experts out there -- have you done any JAVA / VB inter-op?I think most of us use TCP tools (like sockets) to connect two computers that have a TCP link between them. It's the easiest way.