PDA

Click to See Complete Forum and Search --> : Communication between instances


gdisia
May 15th, 2002, 03:18 AM
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

Edneeis
May 15th, 2002, 03:42 AM
2 instances of what? EXEs? Classes?

Pandu
May 15th, 2002, 08:40 AM
If this is between two exes on same machine then create two files and let each be polling to read / write them

ChiefRB
May 15th, 2002, 12:13 PM
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.