473,387 Members | 3,820 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,387 software developers and data experts.

Send data between two applications?

What is the easiest way to send data from one vb.net application to another
(I know I could write to the harddrive or registry, but that does not feel
like a good solution). Someone must have don this before an ave a short and
good example. I have heard of something calle memory mapped file, that might
be a solution, but I can't fine anything abot it.
Feb 15 '08 #1
11 9089
-Database
-textfile
-xml file
-tcpipport / udp port - http://www.codeproject.com/KB/IP/TinyUDP.aspx

"Cross" <cr*********@gawab.comwrote in message
news:OU**************@TK2MSFTNGP06.phx.gbl...
What is the easiest way to send data from one vb.net application to
another (I know I could write to the harddrive or registry, but that does
not feel like a good solution). Someone must have don this before an ave a
short and good example. I have heard of something calle memory mapped
file, that might be a solution, but I can't fine anything abot it.
Feb 15 '08 #2
On 2008-02-15, Cross <cr*********@gawab.comwrote:
What is the easiest way to send data from one vb.net application to another
(I know I could write to the harddrive or registry, but that does not feel
like a good solution). Someone must have don this before an ave a short and
good example. I have heard of something calle memory mapped file, that might
be a solution, but I can't fine anything abot it.
There are lots of ways to do this, depending on the type and amount of
data your trying to transfer :)

For simple, string data - you might look into using WM_COPYDATA. If you
need something more complex, you can use remoting or WCF to transfer the
data. You could even just use regular old sockets...

Can you provide a little more information about the scenario? It might
make giving you a solution a little easier :)

--
Tom Shelton
Feb 15 '08 #3
I only know that since the Unix time the name for this kind of queus is
pipe.
I'v never used it in a Unix or Microsoft OS environment.

In windows Named pipe

http://msdn2.microsoft.com/en-us/library/aa365590.aspx

Cor

Feb 16 '08 #4
The senario is, it will be pretty small set of thata that I want to send.
Like a string or o byte of array. Note (I forgot to mension cause I thioght
it was obvious) the both applications are running on the same PC.

Let me know if you nead any more specific details.
Feb 16 '08 #5
Isn't that an overkill sulotion? What I know, named pipes is a method for
transfering data from one computer to another, but that is not what I want
to do, the both applications are running on the same PC.
"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:F0**********************************@microsof t.com...
>I only know that since the Unix time the name for this kind of queus is
pipe.
I'v never used it in a Unix or Microsoft OS environment.

In windows Named pipe

http://msdn2.microsoft.com/en-us/library/aa365590.aspx

Cor

Feb 16 '08 #6
On Feb 16, 10:36 am, "Cross" <crossspi...@gawab.comwrote:
Isn't that an overkill sulotion? What I know, named pipes is a method for
transfering data from one computer to another, but that is not what I want
to do, the both applications are running on the same PC.

"Cor Ligthert[MVP]" <notmyfirstn...@planet.nlwrote in message

news:F0**********************************@microsof t.com...
I only know that since the Unix time the name for this kind of queus is
pipe.
I'v never used it in a Unix or Microsoft OS environment.
In windows Named pipe
http://msdn2.microsoft.com/en-us/library/aa365590.aspx
Cor
As Tom pointed out, there's a good article on vbaccelerator
demonstrates WM_COPYDATA:
http://www.vbaccelerator.com/home/NE...UVZQVFxBgywaTg
Feb 16 '08 #7
Yes the example on the site:
http://www.vbaccelerator.com/home/NE...on/article.asp
works.

Thanks a lot
Feb 16 '08 #8
Cor,

"Cor Ligthert[MVP]" <no************@planet.nlschrieb:
>I only know that since the Unix time the name for this kind of queus is
pipe.
I'v never used it in a Unix or Microsoft OS environment.

In windows Named pipe

http://msdn2.microsoft.com/en-us/library/aa365590.aspx

Note that there is even a managed wrapper around pipes (anonymous and named)
available in .NET 3.5: 'System.IO.Pipes'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 16 '08 #9
Thanks Herfried

Cor

"Herfried K. Wagner [MVP]" <hi***************@gmx.atschreef in bericht
news:uY**************@TK2MSFTNGP04.phx.gbl...
Cor,

"Cor Ligthert[MVP]" <no************@planet.nlschrieb:
>>I only know that since the Unix time the name for this kind of queus is
pipe.
I'v never used it in a Unix or Microsoft OS environment.

In windows Named pipe

http://msdn2.microsoft.com/en-us/library/aa365590.aspx


Note that there is even a managed wrapper around pipes (anonymous and
named) available in .NET 3.5: 'System.IO.Pipes'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Feb 16 '08 #10
"Cross" <cr*********@gawab.comwrote in
news:OK**************@TK2MSFTNGP02.phx.gbl:
Isn't that an overkill sulotion? What I know, named pipes is a method
for transfering data from one computer to another, but that is not
what I want to do, the both applications are running on the same PC.
Just use WCF or Remoting, it safe and easy to use.

--
sp**********@rogers.com (Do not e-mail)
Feb 16 '08 #11
On 2008-02-16, Cross <cr*********@gawab.comwrote:
The senario is, it will be pretty small set of thata that I want to send.
Like a string or o byte of array. Note (I forgot to mension cause I thioght
it was obvious) the both applications are running on the same PC.

Let me know if you nead any more specific details.
Small set of data, same machine. Looks like string data, or something
that can be converted to string data (using Convert.ToBase64String),
then I would look at using WM_COPYDATA...

Of course if your using 3.5, then you might look at System.IO.Pipes.

--
Tom Shelton
Feb 18 '08 #12

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

Similar topics

9
by: Etienne Charland | last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to send keys to the remote application from a local app....
0
by: R A | last post by:
Hi I have two applications, one is Windows Service and the other is Windows application. How can I send data between this two applications? I would prefer not to use delegates but something else...
0
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it...
3
by: Cesario Simoes | last post by:
I´m programming with Visual C++ since 1995. I have developed many client and server Windows applications using sockets and MFC. Now I need a Console Application to convert in a NT service and I´m...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
2
by: Mesan | last post by:
Hello everyone, Thanks to many useful posts in this newsgroup and others, I've been able to come very close to something I've been wanting to do for a very long time. I've figured out how to...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.