PDA

Click to See Complete Forum and Search --> : communction between two programs


Dec 13th, 1999, 12:12 AM
Hi,

is there a way to let two programs communicate with each other?
e.g. the one program sends a message to the other to refresh himself and the like.

-w

Dec 13th, 1999, 06:44 AM
On the same pc, you can send windows messages (even ones you define) usually beginning with "WM_". Across a network (or on the same pc) you can use sockets. Winsock is a poor implementation of a socket, but there's your solution. Or the Internet Transfer control (Inet).
Check the Internet (or General) forum or search for SendMessage or PostMessage API's.

Dec 13th, 1999, 10:10 PM
communication on the same pc. can you give some examples?

hayessj
Dec 13th, 1999, 10:20 PM
Have a look at raising & sinking events in VB, you could create an ActiveX exe with a singleton class which both programs connect to thus enabling communication. If you are really stuck I can do up an example.

Dec 14th, 1999, 11:07 AM
please post an example