在C#应用程序之间传递数据 [英] Passing data between C# applications

查看:144
本文介绍了在C#应用程序之间传递数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要两个C#应用程序来传递数据。

具体的XML信息,如文档或节点名称。我怎么能这样做?b $ b提前致谢!


~Maryam

Hi all,

I have 2 C# applications that I need to pass data between.
Specifically XML information such as a document or node name. How can
I do that? Thanks in advance!

~ Maryam

推荐答案

您好,

您可以在两个C#应用程序中使用相同的Web服务应用程序。:)


-

Haydar TUNA

共和国土耳其 - 国家教育部

教育技术部安卡拉/土耳其

网址: http://www.haydartuna.net


<啊********** @ gmail.comwrote in消息

news:11 ********************** @ 64g2000cwx.googlegro ups.com ...
Hello,
You can use same web service application in both C# applications.:)

--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net

<ah**********@gmail.comwrote in message
news:11**********************@64g2000cwx.googlegro ups.com...

大家好,

我有2个C#应用程序,我需要在它们之间传递数据。

具体的XML信息,如作为文档或节点名称。我怎么能这样做?b $ b在此先感谢!


~Maryam
Hi all,

I have 2 C# applications that I need to pass data between.
Specifically XML information such as a document or node name. How can
I do that? Thanks in advance!

~ Maryam



您可以创建套接字侦听器和客户端每个应用程序并允许应用程序

相互连接并通过tcp传递数据。

-

问候


John Timney(MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

<啊********** @ gmail.com写信息

新闻:11 *********** ***********@64g2000cwx.googlegro ups.com ...
You could create a socket listener and client in each app and allow the apps
to connect to each other and pass data over tcp.
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
<ah**********@gmail.comwrote in message
news:11**********************@64g2000cwx.googlegro ups.com...

大家好,


我需要在两个C#应用程序之间传递数据。

具体的XML信息,如文档或节点名称。我怎么能这样做?b $ b提前致谢!


~Maryam
Hi all,

I have 2 C# applications that I need to pass data between.
Specifically XML information such as a document or node name. How can
I do that? Thanks in advance!

~ Maryam



嘿伙计,


感谢您的提示。 Haydar,虽然我可以使用Web服务作为应用程序之间的通信方式,但由于我的C#应用​​程序都是支持的,因此我的项目开销太多了b
单独

并且不需要互联网连接。感谢你的想法!


约翰,我正在考虑使用命名管道代替套接字,因为

我的两个程序都可以在一台机器上运行相同的

网络。你知道吗.net是否支持使用C#命名管道?


谢谢!!


~Maryam


3月13日上午10:47,John Timney \(MVP \)

< x_j ... @ timney.eclipse.co.ukwrote :
Hey Guys,

Thanks for your tips. Haydar, although I could use a web service as a
way to communicate between the applications, it would be too much
overhead for my project since both my C# applications are stand alone
and don''t require an internet connection. Thanks for the idea though!

John, I was thinking of using named pipes instead of sockets since
both of my programs will run on one machine or across the same
network. Do you know if the .net has support for named pipes using C#?

Thanks!!

~ Maryam

On Mar 13, 10:47 am, "John Timney \(MVP\)"
<x_j...@timney.eclipse.co.ukwrote:

你可以在每个应用程序中创建套接字监听器和客户端,并允许应用程序

相互连接并通过tcp传递数据。

-

问候


John Timney(MVP) http://www.johntimney.comhttp://www.johntimney.com/blog


< ahmed.mar ... @ gmail.com写信息


新闻:11 ************* *********@64g2000cwx.googlegro ups.com ...
You could create a socket listener and client in each app and allow the apps
to connect to each other and pass data over tcp.
--
Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog

<ahmed.mar...@gmail.comwrote in message

news:11**********************@64g2000cwx.googlegro ups.com...

大家好,
Hi all,


我需要2个C#应用程序来传递数据。

具体来说XML信息,例如文档或节点名称。我怎么能这样做?b $ b提前致谢!
I have 2 C# applications that I need to pass data between.
Specifically XML information such as a document or node name. How can
I do that? Thanks in advance!


~Maryam
~ Maryam



这篇关于在C#应用程序之间传递数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆