两个应用程序间发送数据? [英] Send data between two applications?
问题描述
从一个vb.net应用程序向另一个应用程序发送数据的最简单方法是什么?
(我知道我可以写入硬盘驱动器或注册表,但这感觉不到
就像一个很好的解决方案)。有人必须在一个简短且好的b $ b好例子之前做这个。我听说过一些calle内存映射文件,这可能是一个解决方案,但是我不能对它有什么好处。
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.
推荐答案
-Database
-textfile
-xml文件
-tcpipport / udp port - http://www.codeproject.com/KB/IP/TinyUDP.aspx
" Cross" < cr ********* @ gawab.com写信息
新闻:OU ************** @ TK2MSFTNGP06.phx.gbl。 ..
-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...
从一个vb.net应用程序发送数据的最简单方法是什么?
另一个(我知道我可以写入硬盘或注册表,但确实这不是一个好的解决方案。有人必须在ave a
之前做好这个简短的例子。我听说有一些calle内存映射
文件,这可能是一个解决方案,但我不能对它有什么好处。
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.
>
2008-02-15,Cross< cr ********* @ gawab.comwrote:
On 2008-02-15, Cross <cr*********@gawab.comwrote:
什么是最简单的方法将数据从一个vb.net应用程序发送到另一个vb.net应用程序
(我知道我可以写入硬盘或注册表,但这并不觉得
就像一个很好的解决方案)。有人必须在一个简短且好的b $ b好例子之前做这个。我听说过一些calle内存映射文件,可能是一个解决方案,但是我不能对它有什么好处。
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.
有很多方法可以做到这一点,具体取决于您尝试转移的
数据的类型和数量:)
对于简单的字符串数据 - 您可以考虑使用WM_COPYDATA。如果你需要更复杂的东西,你可以使用远程处理或WCF来传输
数据。你甚至可以使用普通的旧插座...
你能提供一些关于这个场景的更多信息吗?它可能会给你一个更容易的解决方案。
-
Tom Shelton
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
我只知道自从Unix时间以来这个queus的名字是
pipe。
我从来没用过它在Unix或Microsoft OS环境中。
在Windows命名管道中
http://msdn2.microsoft.com/en-us/library/aa365590.aspx
Cor
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
这篇关于两个应用程序间发送数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!