Results 1 to 4 of 4

Thread: Invoking a VB app from another application

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Invoking a VB app from another application

    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

  2. #2
    Hyperactive Member gtilles's Avatar
    Join Date
    Dec 2004
    Location
    Planet Earth
    Posts
    394

    Re: Invoking a VB app from another application

    How about via ports or sockets calls.
    Truly, you have a dizzying intellect.

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Re: Invoking a VB app from another application

    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

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Invoking a VB app from another application

    Quote Originally Posted by wisegb
    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.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width