I have 2 VB6 programs I have written and want to find some way for the
programs to communicate data to each other while they are both
running. For instance when an event fires in program "A" it sends
information to program "B" that would run a subroutine in program 'B."
The 2 programs are VERY diferent and I don't want to somehow lob them
together into one program. I'm looking for a basic description of how
I can do this that references the code elements I'd need. I'm not
looking for someone to write the code for me (that's the fun part!) I
need realtime communication and so far my own ideas are not good. I've
thought of switching focus on the programs and sending keystrokes to
the other program (talk about rigged!) or having a timed event where I
write info from program A to a text file and program B polls the file
every so often to get the info. More complicated would be adding a
network control and using TCP or UDP ports to have the programs
literally talk to each other (way too complicated.) Like I said,
these aren't great ideas! Any help is appreciated!
Barb
Michael D. Ober - 19 May 2005 04:36 GMT
Try a COM Component in each program. Then use:
set otherprog = CreateObject("otherprog.communications")
otherprog.dosomething args
Mike.
> I have 2 VB6 programs I have written and want to find some way for the
> programs to communicate data to each other while they are both
[quoted text clipped - 14 lines]
>
> Barb
mickey - 19 May 2005 09:56 GMT
>I have 2 VB6 programs I have written and want to find some way for the
>programs to communicate data to each other while they are both
[quoted text clipped - 14 lines]
>
>Barb
I have 'very good' experiance with UDP.
Try creating a simple protocol for the programs to understand
eachother.
Groetjenz,
Mickey

Signature
#### gewoan skrieve su ast ut seist ####
Rob - 19 May 2005 12:43 GMT
>I have 2 VB6 programs I have written and want to find some way for the
> programs to communicate data to each other while they are both
> running.
Anything for you?
http://groups-beta.google.com/group/comp.lang.basic.visual.misc/browse_thread/th
read/25957936548c4dd8/58bc19361ff4c017?q=vb6+standalone+and+vb+dll+program..how+
to+return+value&rnum=1&hl=en#58bc19361ff4c017
Rob
D & J G - 31 May 2005 14:26 GMT
Why not write the information that "B" needs from program "A" as a file.
Then set "B" with a timer to 'look' at the file at regular intervals and
react accordingly. Of course both programs would need to be running
simultaneously.
Wouldn't this be the simplest way of getting over your problem? (far easier
than TCP or UDP) We have used this function on numerous occasions.
Don
>I have 2 VB6 programs I have written and want to find some way for the
> programs to communicate data to each other while they are both
[quoted text clipped - 14 lines]
>
> Barb