Call public function in another application
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?
精彩评论