Results 1 to 2 of 2

Thread: Interprocess communication, I guess...

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Smile Interprocess communication, I guess...

    Does Java have a way to communicate between two different programs? Like in C++/VB, you can use SendMessage and other APIs to affect aspects of another program. It seems to me that it would have something like this set up, but nothing comes to mind.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  2. #2
    VirtuallyVB
    Guest
    I'm pretty sure that you would use "native method" calls for that specific example.

    I looked into this a while back:
    http://java.sun.com/docs/books/tutor...tep/index.html

    What wasn't clear to me was that you might have to recompile the dll that has the function and include jni.h. I don't like that idea because we may not have the source code to be able to recompile. If we have the existing dll, I would hope that Java would have access to its functions.

    Also check out
    static{
    System.loadLibrary("someDLL");
    }

    If you find out how, please post your solution and put "resolved".

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