473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
Oct 29 '07 #1
7 2876
On Oct 29, 9:17 am, M O J O <m...@nospam.nospamwrote:
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

Oct 29 '07 #2

"M O J O" <mo**@nospam.nospamwrote in message
news:uy**************@TK2MSFTNGP05.phx.gbl...
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

Oct 29 '07 #3
Tom,

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

:-)

Cor
Oct 29 '07 #4
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" <to*********@comcast.netwrote in message
news:11**********************@t8g2000prg.googlegro ups.com...
On Oct 29, 9:17 am, M O J O <m...@nospam.nospamwrote:
>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
Oct 30 '07 #5

"Andrew Faust" <an****@andrewfaust.comwrote in message
news:DA**********************************@microsof t.com...
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

Oct 30 '07 #6
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:
On Oct 29, 9:17 am, M O J O <m...@nospam.nospamwrote:
>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
Oct 30 '07 #7

"M O J O" <mo**@nospam.nospamwrote in message
news:OB**************@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

Oct 30 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
5
by: Pete Loveall | last post by:
I have a server application that monitors a private local queue for messages. The message sent to it has a label and a response queue defined. It works correctly when the queue is accessed via...
7
by: Scott M. Lyon | last post by:
Quick (hopefully easy) question for you guys. What is going to be the quickest/easiest way to generate XML from VB.NET? Note: I don't mean an XML file, but XML in memory somehow (an...
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
4
by: Mike Charney | last post by:
What is the easiest and simplest way to find out if a table exists in an Access Data Project? (SQL Svr 2000 Standard using MS-Access 2003 for connection.) Mike Charney m charney at dunlap...
3
by: growse | last post by:
Right, I've got a 2 c# programs here. Lets call them A and B. My aim is to send a simple string from B to A. A is always running. I've overridden the WndProc method to give me messages that are...
14
by: Professor Yonce | last post by:
I have made form for E-Mail. I have entered code but the Import system does not work. It has squiggly line underneath it showing it is not communicating. It Will not build. Public Class...
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
3
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi There, I use follow code to send email inside VB.NET 2005. It does not work well. Error message of "Failure sending email" would occue. However, email was sent out sometimes. I am confused...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.