开发者

Call public function in another application

开发者 https://www.devze.com 2022-12-08 19:12 出处:网络
If I have a Windows Application WinApp that has a public function pubFun, how can I call it fro开发者_如何学Cm a different windows application --> WinApp.pubFun() ?

If I have a Windows Application WinApp that has a public function pubFun, how can I call it fro开发者_如何学Cm a different windows application --> WinApp.pubFun() ?

Thanks in advance


This isn't trivial, there's lots of ways to do it.

I suggest using WCF, its a great framework that abstracts the communication logic and makes your inter-application communication work just like calling methods on an object.


Is there anything stopping you from extracting the logic out into a separate assembly which both applications can share?

0

精彩评论

暂无评论...
验证码 换一张
取 消