Groups | Blog | Home
all groups > dotnet remoting > october 2007 >

dotnet remoting : Easiest was to send a String from one app to another??


Tom Shelton
10/29/2007 9:01:57 AM
[quoted text, click to view]

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
Lloyd Sheen
10/29/2007 12:06:45 PM

[quoted text, click to view]

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

LS
M O J O
10/29/2007 4:17:22 PM
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?

Cor Ligthert[MVP]
10/29/2007 6:50:40 PM
Tom,

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

:-)

Andrew Faust
10/29/2007 6:58:59 PM
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
andrew[at]andrewfaust.com
http://www.andrewfaust.com


[quoted text, click to view]
Tom Shelton
10/29/2007 9:04:53 PM

[quoted text, click to view]

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

--
Tom Shelton
M O J O
10/30/2007 12:00:00 AM
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]
Tom Shelton
10/30/2007 12:42:35 AM

[quoted text, click to view]

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
AddThis Social Bookmark Button