PC Review


Reply
Thread Tools Rate Thread

Communicate between 2 applications on the same machine

 
 
=?Utf-8?B?a2Q=?=
Guest
Posts: n/a
 
      19th Mar 2005
Hi All,

Can anybody suggest as to what is the best way communicate between 2
applications residing on the same machine?

Thanks.
kd
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th Mar 2005
"kd" <(E-Mail Removed)> schrieb:
> Can anybody suggest as to what is the best way communicate between 2
> applications residing on the same machine?


There are many different ways to do that. You can use remoting, sockets,
other IPC mechanisms, or the 'WM_COPYDATA' message. A sample for using
'WM_COPYDATA' to exchange data between two applications written by Tom
Shelton [MVP] can be found here:

<URL:http://groups.google.de/groups?selm=uWYQZLWjDHA.3312%40tk2msftngp13.phx.gbl>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
 
Richard Moore
Guest
Posts: n/a
 
      19th Mar 2005
Named pipes always worked well for me.

You can also use memory mapped files but named pipes are a lot easier - and
more stable in my experience.

--
Richard Moore
---------------------------------------
Aquila Cybernetic Ltd
http://www.e-aquila.com
---------------------------------------
"kd" <(E-Mail Removed)> wrote in message
news:0292842F-2870-47D1-AF1C-(E-Mail Removed)...
> Hi All,
>
> Can anybody suggest as to what is the best way communicate between 2
> applications residing on the same machine?
>
> Thanks.
> kd



 
Reply With Quote
 
=?Utf-8?B?a2Q=?=
Guest
Posts: n/a
 
      19th Mar 2005
Hi,

Thanks for your replies.

One application is developed in visual foxpro 8.0 and the other is developed
in vb.net. This being the scenario, could you please suggest the easiet way
to communicate between the two applications?

Thanks.
kd

"Herfried K. Wagner [MVP]" wrote:

> "kd" <(E-Mail Removed)> schrieb:
> > Can anybody suggest as to what is the best way communicate between 2
> > applications residing on the same machine?

>
> There are many different ways to do that. You can use remoting, sockets,
> other IPC mechanisms, or the 'WM_COPYDATA' message. A sample for using
> 'WM_COPYDATA' to exchange data between two applications written by Tom
> Shelton [MVP] can be found here:
>
> <URL:http://groups.google.de/groups?selm=uWYQZLWjDHA.3312%40tk2msftngp13.phx.gbl>
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>
>
>


"Richard Moore" wrote:

> Named pipes always worked well for me.
>
> You can also use memory mapped files but named pipes are a lot easier - and
> more stable in my experience.
>
> --
> Richard Moore
> ---------------------------------------
> Aquila Cybernetic Ltd
> http://www.e-aquila.com
> ---------------------------------------
> "kd" <(E-Mail Removed)> wrote in message
> news:0292842F-2870-47D1-AF1C-(E-Mail Removed)...
> > Hi All,
> >
> > Can anybody suggest as to what is the best way communicate between 2
> > applications residing on the same machine?
> >
> > Thanks.
> > kd

>
>
>

 
Reply With Quote
 
Richard Moore
Guest
Posts: n/a
 
      19th Mar 2005
There's an article here http://foxproadvisor.com/doc/14609 on exactly this
topic - bad news is it looks like you have to subscribe to access it.

Don't know much about Foxpro but named pipes are fairly easy to work with
and are pretty much platform independant. You create a named pipe and then
access it like a file i.e. you can write bytes into it and read bytes out of
it. One app would write into the pipe, the other would read out of it.

--
Richard Moore
---------------------------------------
Aquila Cybernetic Ltd
http://www.e-aquila.com
---------------------------------------
"kd" <(E-Mail Removed)> wrote in message
news:AC821378-5E94-4A47-88D9-(E-Mail Removed)...
> Hi,
>
> Thanks for your replies.
>
> One application is developed in visual foxpro 8.0 and the other is
> developed
> in vb.net. This being the scenario, could you please suggest the easiet
> way
> to communicate between the two applications?
>
> Thanks.
> kd
>
> "Herfried K. Wagner [MVP]" wrote:
>
>> "kd" <(E-Mail Removed)> schrieb:
>> > Can anybody suggest as to what is the best way communicate between 2
>> > applications residing on the same machine?

>>
>> There are many different ways to do that. You can use remoting, sockets,
>> other IPC mechanisms, or the 'WM_COPYDATA' message. A sample for using
>> 'WM_COPYDATA' to exchange data between two applications written by Tom
>> Shelton [MVP] can be found here:
>>
>> <URL:http://groups.google.de/groups?selm=uWYQZLWjDHA.3312%40tk2msftngp13.phx.gbl>
>>
>> --
>> M S Herfried K. Wagner
>> M V P <URL:http://dotnet.mvps.org/>
>> V B <URL:http://classicvb.org/petition/>
>>
>>

>
> "Richard Moore" wrote:
>
>> Named pipes always worked well for me.
>>
>> You can also use memory mapped files but named pipes are a lot easier -
>> and
>> more stable in my experience.
>>
>> --
>> Richard Moore
>> ---------------------------------------
>> Aquila Cybernetic Ltd
>> http://www.e-aquila.com
>> ---------------------------------------
>> "kd" <(E-Mail Removed)> wrote in message
>> news:0292842F-2870-47D1-AF1C-(E-Mail Removed)...
>> > Hi All,
>> >
>> > Can anybody suggest as to what is the best way communicate between 2
>> > applications residing on the same machine?
>> >
>> > Thanks.
>> > kd

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?a2Q=?=
Guest
Posts: n/a
 
      20th Mar 2005
Hi Richard,

Thanks for the link.

On a second thought, I could may be try named pipes. However, I could not
find help on named pipes in the visual foxpro help or in vb.net help. Could
you please suggest keywords that I can use to perform search in foxpro as
well as in vb.net?

Thanks
kd

"Richard Moore" wrote:

> There's an article here http://foxproadvisor.com/doc/14609 on exactly this
> topic - bad news is it looks like you have to subscribe to access it.
>
> Don't know much about Foxpro but named pipes are fairly easy to work with
> and are pretty much platform independant. You create a named pipe and then
> access it like a file i.e. you can write bytes into it and read bytes out of
> it. One app would write into the pipe, the other would read out of it.
>
> --
> Richard Moore
> ---------------------------------------
> Aquila Cybernetic Ltd
> http://www.e-aquila.com
> ---------------------------------------
> "kd" <(E-Mail Removed)> wrote in message
> news:AC821378-5E94-4A47-88D9-(E-Mail Removed)...
> > Hi,
> >
> > Thanks for your replies.
> >
> > One application is developed in visual foxpro 8.0 and the other is
> > developed
> > in vb.net. This being the scenario, could you please suggest the easiet
> > way
> > to communicate between the two applications?
> >
> > Thanks.
> > kd
> >
> > "Herfried K. Wagner [MVP]" wrote:
> >
> >> "kd" <(E-Mail Removed)> schrieb:
> >> > Can anybody suggest as to what is the best way communicate between 2
> >> > applications residing on the same machine?
> >>
> >> There are many different ways to do that. You can use remoting, sockets,
> >> other IPC mechanisms, or the 'WM_COPYDATA' message. A sample for using
> >> 'WM_COPYDATA' to exchange data between two applications written by Tom
> >> Shelton [MVP] can be found here:
> >>
> >> <URL:http://groups.google.de/groups?selm=uWYQZLWjDHA.3312%40tk2msftngp13.phx.gbl>
> >>
> >> --
> >> M S Herfried K. Wagner
> >> M V P <URL:http://dotnet.mvps.org/>
> >> V B <URL:http://classicvb.org/petition/>
> >>
> >>

> >
> > "Richard Moore" wrote:
> >
> >> Named pipes always worked well for me.
> >>
> >> You can also use memory mapped files but named pipes are a lot easier -
> >> and
> >> more stable in my experience.
> >>
> >> --
> >> Richard Moore
> >> ---------------------------------------
> >> Aquila Cybernetic Ltd
> >> http://www.e-aquila.com
> >> ---------------------------------------
> >> "kd" <(E-Mail Removed)> wrote in message
> >> news:0292842F-2870-47D1-AF1C-(E-Mail Removed)...
> >> > Hi All,
> >> >
> >> > Can anybody suggest as to what is the best way communicate between 2
> >> > applications residing on the same machine?
> >> >
> >> > Thanks.
> >> > kd
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Richard Moore
Guest
Posts: n/a
 
      20th Mar 2005
Hi kd,

Try searching google groups for "vb.net named pipe" - throws up quite a few
hits...

Here's a link to a good Microsoft article for VB.NET
http://support.microsoft.com/default...b;en-us;871044. The bulk of
this example uses plain old Win32 function calls so it should port to any
Microsoft programming environment with a bit of bending.

I don't know much about Foxpro - so you'd be better off asking about the VFP
side of things in VPF groups.

--
Richard Moore
---------------------------------------
Aquila Cybernetic Ltd
http://www.e-aquila.com
---------------------------------------
"kd" <(E-Mail Removed)> wrote in message
news:FFCECE1C-1EA6-4486-A02B-(E-Mail Removed)...
> Hi Richard,
>
> Thanks for the link.
>
> On a second thought, I could may be try named pipes. However, I could not
> find help on named pipes in the visual foxpro help or in vb.net help.
> Could
> you please suggest keywords that I can use to perform search in foxpro as
> well as in vb.net?
>
> Thanks
> kd
>
> "Richard Moore" wrote:
>
>> There's an article here http://foxproadvisor.com/doc/14609 on exactly
>> this
>> topic - bad news is it looks like you have to subscribe to access it.
>>
>> Don't know much about Foxpro but named pipes are fairly easy to work with
>> and are pretty much platform independant. You create a named pipe and
>> then
>> access it like a file i.e. you can write bytes into it and read bytes out
>> of
>> it. One app would write into the pipe, the other would read out of it.
>>
>> --
>> Richard Moore
>> ---------------------------------------
>> Aquila Cybernetic Ltd
>> http://www.e-aquila.com
>> ---------------------------------------
>> "kd" <(E-Mail Removed)> wrote in message
>> news:AC821378-5E94-4A47-88D9-(E-Mail Removed)...
>> > Hi,
>> >
>> > Thanks for your replies.
>> >
>> > One application is developed in visual foxpro 8.0 and the other is
>> > developed
>> > in vb.net. This being the scenario, could you please suggest the easiet
>> > way
>> > to communicate between the two applications?
>> >
>> > Thanks.
>> > kd
>> >
>> > "Herfried K. Wagner [MVP]" wrote:
>> >
>> >> "kd" <(E-Mail Removed)> schrieb:
>> >> > Can anybody suggest as to what is the best way communicate between 2
>> >> > applications residing on the same machine?
>> >>
>> >> There are many different ways to do that. You can use remoting,
>> >> sockets,
>> >> other IPC mechanisms, or the 'WM_COPYDATA' message. A sample for
>> >> using
>> >> 'WM_COPYDATA' to exchange data between two applications written by Tom
>> >> Shelton [MVP] can be found here:
>> >>
>> >> <URL:http://groups.google.de/groups?selm=uWYQZLWjDHA.3312%40tk2msftngp13.phx.gbl>
>> >>
>> >> --
>> >> M S Herfried K. Wagner
>> >> M V P <URL:http://dotnet.mvps.org/>
>> >> V B <URL:http://classicvb.org/petition/>
>> >>
>> >>
>> >
>> > "Richard Moore" wrote:
>> >
>> >> Named pipes always worked well for me.
>> >>
>> >> You can also use memory mapped files but named pipes are a lot
>> >> easier -
>> >> and
>> >> more stable in my experience.
>> >>
>> >> --
>> >> Richard Moore
>> >> ---------------------------------------
>> >> Aquila Cybernetic Ltd
>> >> http://www.e-aquila.com
>> >> ---------------------------------------
>> >> "kd" <(E-Mail Removed)> wrote in message
>> >> news:0292842F-2870-47D1-AF1C-(E-Mail Removed)...
>> >> > Hi All,
>> >> >
>> >> > Can anybody suggest as to what is the best way communicate between 2
>> >> > applications residing on the same machine?
>> >> >
>> >> > Thanks.
>> >> > kd
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?TWluaS1Ub29scyBUaW1t?=
Guest
Posts: n/a
 
      23rd May 2006
"kd" wrote:

> Hi All,
>
> Can anybody suggest as to what is the best way communicate between 2
> applications residing on the same machine?
>
> Thanks.
> kd


If both processes are running on the same PC, then using Windows messaging
SendMessageW and WM_COPYDATA performs quite well.

We offer a .NET component FREE for non-commercial use that does this:
http://www.mini-tools.com/goto/comm

--
Timm Martin
Mini-Tools
..NET Components and Windows Software
http://www.mini-tools.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Communicate between Applications Johnny E. Jensen Microsoft C# .NET 9 15th Aug 2008 02:33 AM
Communicate between many C# applications michelqa@yahoo.ca Microsoft C# .NET 8 17th Jun 2008 11:39 PM
Communicate between applications SQACSharp Microsoft C# .NET 3 27th Dec 2007 04:28 PM
communicate between two exe applications =?Utf-8?B?TmFwbw==?= Microsoft Dot NET Framework 2 2nd Aug 2006 11:49 AM
How can I communicate between web servers on the same machine? Gery D. Dorazio Microsoft ASP .NET 4 5th Nov 2004 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 PM.