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:
[quoted text, click to view] > On Oct 29, 9:17 am, M O J O <m...@nospam.nospam> wrote:
>> 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.
>
> --
> Tom Shelton
[quoted text, click to view] "M O J O" <mojo@nospam.nospam> wrote in message
news:OB$BKxrGIHA.1212@TK2MSFTNGP05.phx.gbl...
> 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.
--
Tom Shelton