Results 1 to 4 of 4

Thread: Communication between instances

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    1

    Communication between instances

    Hi,

    I've been trying to get 2 instances to communicate with each other, like calling each other functions but I cannot create a new object as I would lose information and privileges. It is some thing similar to web services on the same machine, any ideas on how to do it?
    is it possible to grab a handle to an instance using GUID and using it's functions?

    Thanks
    Gdisia

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    2 instances of what? EXEs? Classes?

  3. #3
    New Member
    Join Date
    May 2002
    Posts
    7
    If this is between two exes on same machine then create two files and let each be polling to read / write them

  4. #4
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    uk
    Posts
    327
    Applications like Word or Excel are usable from within your programs if they're running because they register themselves with the Windows ROT. (Can't remember what it stands for though...) If you can register your EXE with the ROT, other programs can create objects out of it. Search the net for how to do this, I've seen it somewhere, although it's probably highly technical.
    The other option is to use an ActiveX EXE client/server model to allow communication, but it really depends on how much coding you want to do. Allowing them both to read and write a file (as mentioned above) is perfectly acceptable in some circumstances.

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