什么样的ipc技术用于C#windows形成应用程序。 [英] what kind of ipc technologies for C# windows form applications.
本文介绍了什么样的ipc技术用于C#windows形成应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道您可以使用套接字与其他应用程序通信。但我有一个旧的
;)MFC应用程序,只有
说wm_copydata。我希望这个应用程序能够与另一个用C#编写的
进行交互。
Well" web services"这是不可能的,因为我不知道我的旧MFC
centrique app是否需要
才能被网络服务困扰。
那么还有什么其他选择。
非常感谢提前
I know you can use socket to talk to other application . But i have an old
;) MFC app that only
speaks "wm_copydata". I want this appliccation to interact with an other one
written with C#.
Well "web services" are out of question because i do not know if my old MFC
centrique app need
to be bothered with web service.
So what are the other alternatives.
Many thanks in advance
推荐答案
wm_copydata?
你的意思是某种共享内存吗?
否则我有一个我计划共享软件的库,但它还没有
有文件证明,还没有在你可以购买的网站上,但是已经使用C#中的管道和共享内存实现工作了。
(+你需要的一些远程工作) 不幸的是,小心点
(问题是我正在慢慢学习ASP.NET 2.0所以它会......延迟)
最终如果你有兴趣可以联系我:ld删除跳过
galador dot net
" Bredal Jensen" <峰; br **** @ jensen.dk>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
wm_copydata?
do you mean some kind of shared memory stuff?
otherwise I have a library which I plan to have shareware, but it''s not yet
well documented, not yet on a web site where you could buy, but already
working with Pipes and Shared Memory implementation in C#.
(+ some remoting stuff you don''t, unfortunatele, care)
(the problem is I''m slowly learning ASP.NET 2.0 so it will be ... delayed)
eventually if you''re interested you could contact me: ld remove at skip
galador dot net
"Bredal Jensen" <br****@jensen.dk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
我知道你可以使用socket与其他应用程序交谈。但我有一个旧的
;)MFC应用程序,只说
说wm_copydata。我希望这个应用程序能够与用C#编写的其他用户进行交互。
好的网络服务。是不可能的,因为我不知道我的旧的MFC
centrique应用程序是否需要受到网络服务的困扰。
那么还有什么其他选择。
非常感谢提前
I know you can use socket to talk to other application . But i have an old
;) MFC app that only
speaks "wm_copydata". I want this appliccation to interact with an other
one
written with C#.
Well "web services" are out of question because i do not know if my old
MFC
centrique app need
to be bothered with web service.
So what are the other alternatives.
Many thanks in advance
你将不得不截取该消息,覆盖接收它的形式的
的WndProc。之后你可以使用编组来复制数据,我不会在这里有一个例子,但是我向你保证,如果你在google中查看,你会发现很多。
欢呼,
-
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
佛罗里达州交通部
" Bredal Jensen" <峰; br **** @ jensen.dk>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
Hi,
You will have to intercept that message, overwriting WndProc of the form
receiving it. after that you can copy the data using marshalling, I dont
have an example here with me but I assure you that if you look in google you
will find plenty.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Bredal Jensen" <br****@jensen.dk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
我知道你可以使用socket与其他应用程序交谈。但我有一个旧的
;)MFC应用程序,只说
说wm_copydata。我希望这个应用程序与用C#编写的其他
交互。
好的Web服务这是不可能的,因为我不知道我的旧的
MFC centrique应用程序是否需要受到网络服务的困扰。
那么还有什么其他选择。
非常感谢提前
I know you can use socket to talk to other application . But i have an old
;) MFC app that only
speaks "wm_copydata". I want this appliccation to interact with an other one written with C#.
Well "web services" are out of question because i do not know if my old MFC centrique app need
to be bothered with web service.
So what are the other alternatives.
Many thanks in advance
Bredal,
如果是这样的话,然后你可以很容易地定义SendMessage
API函数并调用它,传递WM_COPYDATA消息(和相应的
参数)。你必须确保你有
应用程序的窗口处理,并且你已经设置好了。
希望这会有所帮助。
-
- Nicholas Paldino [.NET / C#MVP]
- mv*@spam.guard.caspershouse.com
" Bredal Jensen" <峰; br **** @ jensen.dk>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
Bredal,
If that is the case, then you could very easily define the SendMessage
API function and call that, passing the WM_COPYDATA message (and appropriate
paramters). You just have to make sure you have the windows handle of the
app, and you are set.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Bredal Jensen" <br****@jensen.dk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
我知道你可以使用socket与其他应用程序交谈。但我有一个旧的
;)MFC应用程序,只说
说wm_copydata。我希望这个应用程序能够与用C#编写的其他用户进行交互。
好的网络服务。是不可能的,因为我不知道我的旧的MFC
centrique应用程序是否需要受到网络服务的困扰。
那么还有什么其他选择。
非常感谢提前
I know you can use socket to talk to other application . But i have an old
;) MFC app that only
speaks "wm_copydata". I want this appliccation to interact with an other
one
written with C#.
Well "web services" are out of question because i do not know if my old
MFC
centrique app need
to be bothered with web service.
So what are the other alternatives.
Many thanks in advance
这篇关于什么样的ipc技术用于C#windows形成应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文