Hi All,

I need to communicate between two applications. 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 and the bext way to communicate
between the two applications?

Thanks.
kd

Re: Communicate with vb.net application by Cindy

Cindy
Sun Mar 20 14:46:37 CST 2005

Hi KD,

You haven't said much about what the apps are doing and what sort of
communication you need to do. Are the apps "communicating" while they are
both running? Do the apps need to communicate or do you just need to share
some data?

--
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden


"kd" <kd@discussions.microsoft.com> wrote in message
news:EF570B11-1A9B-41EB-A367-25FF31837E15@microsoft.com...
> Hi All,
>
> I need to communicate between two applications. 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 and the bext way to
> communicate
> between the two applications?
>
> Thanks.
> kd
>



Re: Communicate with vb.net application by kd

kd
Mon Mar 21 00:55:02 CST 2005

Hi Cindy,

The two applications use the same COM port alternatively (based on some
conditions) to perform read/write operations. What I need to do is when
application1 wants to use the port, I want to intimate the second application
to close the port and then send an intimation to application1 that the port
was successfully closed. The application1 would then, open the port, perform
required read/write operations and then it would intimate the second
application that the port is free to be used. This is the scenario.

Any suggestions how to implement this?

Thanks.

Regards,
kd

"Cindy Winegarden" wrote:

> Hi KD,
>
> You haven't said much about what the apps are doing and what sort of
> communication you need to do. Are the apps "communicating" while they are
> both running? Do the apps need to communicate or do you just need to share
> some data?
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
>
> "kd" <kd@discussions.microsoft.com> wrote in message
> news:EF570B11-1A9B-41EB-A367-25FF31837E15@microsoft.com...
> > Hi All,
> >
> > I need to communicate between two applications. 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 and the bext way to
> > communicate
> > between the two applications?
> >
> > Thanks.
> > kd
> >
>
>
>

Re: Communicate with vb.net application by kd

kd
Mon Mar 21 00:57:06 CST 2005

Hi again

I missed out on one detail. Application1 is developed in foxpro 8.0 and
application2 is developed in vb.net

kd

"Cindy Winegarden" wrote:

> Hi KD,
>
> You haven't said much about what the apps are doing and what sort of
> communication you need to do. Are the apps "communicating" while they are
> both running? Do the apps need to communicate or do you just need to share
> some data?
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
>
> "kd" <kd@discussions.microsoft.com> wrote in message
> news:EF570B11-1A9B-41EB-A367-25FF31837E15@microsoft.com...
> > Hi All,
> >
> > I need to communicate between two applications. 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 and the bext way to
> > communicate
> > between the two applications?
> >
> > Thanks.
> > kd
> >
>
>
>

Re: Communicate with vb.net application by tom

tom
Mon Mar 21 03:33:05 CST 2005

Hi Kd,

the easiest way be using "flagfiles" and putting an Exist(file) into a timer
event.

Principle
So if app2 wants to use the port it creates a file "WANT2" , sets a internal
variable that it is in "waiting for ok mode" and returns into the timer now
checking for exist of "want2" and "OK2".
When app1 reaches the timer, it checks for "WANT2" and if ok, it kills
"want2" and fcreates "OK2" and goes to check for exist(OK2). Now app2 does
what it wants and kills OK2 when done signaling App1 that its finished.. You
may put similar scenarios with flag files for errors,..
And vice versa.

Advantage is, that in ANY language there is a EXIST().


HTH
Tom

A "nicer" way would be to change the caption of the main window and let the
other act on it, also in a timer event.


"kd" <kd@discussions.microsoft.com> schrieb im Newsbeitrag
news:EF570B11-1A9B-41EB-A367-25FF31837E15@microsoft.com...
> Hi All,
>
> I need to communicate between two applications. 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 and the bext way to
communicate
> between the two applications?
>
> Thanks.
> kd
>



Re: Communicate with vb.net application by Anders

Anders
Mon Mar 21 04:28:19 CST 2005

In that scenario each app grabs and hold the port as long as it needs it. If
the each app releases the connection as soon as its done its job, then
opening the port could be put in a loop that goes on till the port is
eithere found free or a timeout occurs, which reports to the rest of the
same app that it couldn't get the port afdter trying for n seconds. Nobosy
would have to tell the other to go ahead.
-Anders

"kd" <kd@discussions.microsoft.com> wrote in message
news:EF570B11-1A9B-41EB-A367-25FF31837E15@microsoft.com...
> Hi All,
>
> I need to communicate between two applications. 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 and the bext way to
communicate
> between the two applications?
>
> Thanks.
> kd
>