Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intercommunication ...

Status
Not open for further replies.

daniloa

Programmer
Nov 23, 2001
27
BR
Hello friends,

how are you? I hope fine ...

Well I want to know a thing. Please say if it's possible:

I have an exe program running named "A"
------
| A |
------

I have an other exe program running (on same computer) named "B"
------
| B |
------

I have an OCX or DLL component common at both like:
------ -------------- ------
| A |--------| OCX/DLL |-----------| B |
------ -------------- ------

What I want to know is:
Can I on program "A" call a Function on OCX/DLL and this raise an event on program "B" ??? In Real Time like:

"A" ==> Call MyFunc(Parm1, Parm2)
"OCX/DLL" ==> long MyClass::MyFunc(long Parm1, long Parm2)
{
// Raise Event named MyEvent() Passing Parm1 and Parm2 to Program "B"
}
"B" ==> On MyObject_MyEvent(Parm1 as long, Parm2 as Long)

Could you help me ???

Very Thanks,

Danilo ...
 
Hi

You can simply use DDE to do the job. It's not very powerful but yet enough for what your are looking for.
An other option is to use one of the numerous Socket-derived classes that you can found on the Web. Some of them are extremely simple to use and one you have finished with two exe on the same computer you can expand your apps to do the same things across a network...

MTC
Thierry


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top