HighTechTalks DotNet Forums  

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

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Easiest was to send a String from one app to another?? in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
M O J O
 
Posts: n/a

Default Easiest was to send a String from one app to another?? - 10-29-2007 , 11:17 AM






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

Reply With Quote
  #2  
Old   
Tom Shelton
 
Posts: n/a

Default Re: Easiest was to send a String from one app to another?? - 10-29-2007 , 12:01 PM






On Oct 29, 9:17 am, M O J O <m... (AT) nospam (DOT) nospam> wrote:
Quote:
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



Reply With Quote
  #3  
Old   
Lloyd Sheen
 
Posts: n/a

Default Re: Easiest was to send a String from one app to another?? - 10-29-2007 , 12:06 PM




"M O J O" <mojo (AT) nospam (DOT) nospam> wrote

Quote:
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



Reply With Quote
  #4  
Old   
Cor Ligthert[MVP]
 
Posts: n/a

Default Re: Easiest was to send a String from one app to another?? - 10-29-2007 , 01:50 PM



Tom,

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

:-)

Cor

Reply With Quote
  #5  
Old   
Andrew Faust
 
Posts: n/a

Default Re: Easiest was to send a String from one app to another?? - 10-29-2007 , 08:58 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


"Tom Shelton" <tom_shelton (AT) comcast (DOT) net> wrote

Quote:
On Oct 29, 9:17 am, M O J O <m... (AT) nospam (DOT) 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



Reply With Quote
  #6  
Old   
Tom Shelton
 
Posts: n/a

Default Re: Easiest was to send a String from one app to another?? - 10-29-2007 , 11:04 PM




"Andrew Faust" <andrew (AT) andrewfaust (DOT) com> wrote

Quote:
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

--
Tom Shelton



Reply With Quote
  #7  
Old   
M O J O
 
Posts: n/a

Default Re: Easiest was to send a String from one app to another?? - 10-30-2007 , 02:15 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. )

Thanks again.

M O J O




Tom Shelton skrev:
Quote:
On Oct 29, 9:17 am, M O J O <m... (AT) nospam (DOT) 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


Reply With Quote
  #8  
Old   
Tom Shelton
 
Posts: n/a

Default Re: Easiest was to send a String from one app to another?? - 10-30-2007 , 02:42 AM




"M O J O" <mojo (AT) nospam (DOT) nospam> wrote

Quote:
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. )

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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.