如何将值从一个应用程序传递到另一个应用程序 [英] how to pass a value from one application to another application

查看:82
本文介绍了如何将值从一个应用程序传递到另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发人员,

请帮我?这就是我需要的吗?

我想将值从我的应用程序传递给其他应用程序.
为此,我想从那里检索数据!

A ---->其他应用

B ---->我自己的应用程序

记事本数据--->到-> B(我的申请)------>到----> A(其他应用程序)


A(其他申请)----->检索数据-----> B(我的应用程序)----->记事本(填充数据)


请帮助解决此问题,并提出开发思路(任何链接都对我有帮助)

解决方案

有一些选项可以做到这一点.
1)一种可能是使用套接字和TCP- .NET中使用C#进行套接字编程简介 [ ^ ].
2)另一种可能是通过命名管道使用WCF进程间通信 [ ^ ].
3)Web服务可能有点大材小用,但仍然是一种选择.
4)消息排队是您可以考虑的另一种机制
5).Net 2.0,您可以使用远程处理.


很简单,您可以将应用程序"A"中的值写入文本文件/数据表
在应用程序"B"中,您可以读取该值

您还可以使用内存映射文件在同一台计算机上的不同应用程序之间共享数据.这个站点上有一些不错的文章.


Hi developers,

Please Help Me? This is what i need?

I wants to pass values to other application from my application.
On that i wants to retrive data from there!

A----> Other appliaction

B----> My own application

notepad data ---> to---> B(my application)------> to ----> A(other Application)


A(other Applicatio)-----> Retrive data----->B(My Application)----->Notepad(Fill Data)


Please help to resolve this and give idea to develop this also(Any Link is there it''s Helpful to me)

解决方案

There are some options to do this.
1) One could be to use sockets and TCP - An Introduction to Socket Programming in .NET using C#[^].
2) The other could be to use WCF inter process communication via named pipes[^].
3) Web services may be a bit of an overkill, but is an option none the less.
4) Message queueing is another mechanism that you could consider
5) .Net 2.0 and you could use Remoting.


Simple You Can Write the Value From Your Application "A" To A Text File/Data Table
And From Your Application "B" You Can Read This Value


You can also use memory mapped files to share data among different applications on the same machine. There are some nice articles on this site about this.


这篇关于如何将值从一个应用程序传递到另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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