Easiest was to send a String from one app to another??

  • Thread starter Thread starter M O J O
  • Start date Start date
M

M O J O

Hi,

What is the easiest way to send a string from one application to another?

I'm develloping an OutlookAddIn and in some cases I need to make my
OutlookAddIn send a string to my other (CRM) application.

Any idea?

Thanks M O J O
 
Hi,

What is the easiest way to send a string from one application to another?

I'm develloping an OutlookAddIn and in some cases I need to make my
OutlookAddIn send a string to my other (CRM) application.

Any idea?

Thanks M O J O

Well, there are lots of ways to accomplish this... But, it really
depends on the architecture of your application. Do they both reside
on the same machine? Do they need to talk across the network?

Some choices WM_COPYDATA (local), named pipes, remoting, wcf, sockets
(system.net.*), memory mapped files, database polling, etc...

Some of those are of course harder then others (wm_copydata and memory
mapped files, are probably not what you want :). But, we need a
little more information before a recommendation is made.
 
M O J O said:
Hi,

What is the easiest way to send a string from one application to another?

I'm develloping an OutlookAddIn and in some cases I need to make my
OutlookAddIn send a string to my other (CRM) application.

Any idea?

Thanks M O J O

You will have to know what methods your other app will accept data from
other applications.

LS
 
Tom,

I would have written almost exactly the same as you were not before me.

:-)

Cor
 
You missed a method. Programmatically take control of the keyboard and
mouse to move the cursor to the field you want to enter the data. Then
programmatically send the individual keypresses.
 
Andrew Faust said:
You missed a method. Programmatically take control of the keyboard and
mouse to move the cursor to the field you want to enter the data. Then
programmatically send the individual keypresses.

LOL... I think that qualifies as the etc. part :)
 
Hi Tom,

Thanks for helping me out here!

Well both aplications resides on the same machine.

I'm using VB.net 2005 on both the OutlookAddIn and my CRM application.

In my OutlookAddIn, I'm capturing when an appointment is saved and then
I save all the appointment informations in my sql server. Next I want my
OutlookAddIn to simply tell my CRM application, that an appointment has
been saved (using the GlobalAppointmentID ... a string). My CRM
application might not run.

I was hoping that my OutlookAddIn could broadcast a string message and
my CRM application could listen for that broadcast.

I'm new to this intercommunication stuff. :o)

Thanks again.

M O J O




Tom Shelton skrev:
 
M O J O said:
Hi Tom,

Thanks for helping me out here!

Well both aplications resides on the same machine.

I'm using VB.net 2005 on both the OutlookAddIn and my CRM application.

In my OutlookAddIn, I'm capturing when an appointment is saved and then I
save all the appointment informations in my sql server. Next I want my
OutlookAddIn to simply tell my CRM application, that an appointment has
been saved (using the GlobalAppointmentID ... a string). My CRM
application might not run.

I was hoping that my OutlookAddIn could broadcast a string message and my
CRM application could listen for that broadcast.

I'm new to this intercommunication stuff. :o)

Thanks again.

M O J O

Well, since you seem to be in charge of both apps, and since they are both
presumably .NET apps, I would take a look at using WCF. WCF is the new and
improved remoting in .NET 3.0 :) I can't give you specifics - since it is
one of the new set of technologies, that I haven't had a chance to play with
yet... WPF and WF, I've worked with. WCF - not so much :) And it is the
prefered method of communication between .NET apps. I understand that one
of the new chanels is a named pipe chanel - should be very efficient, since
they both are on the same machine.
 
Back
Top