Calling a public function in another application

If I have a Windows Application WinApp with a public function pubFun

, how can I call it from another Windows Application -> WinApp.pubFun()

?

Thank you in advance

+2


source to share


2 answers


This is not trivial, there are many ways to do it.



I suggest using WCF , it is a great framework that abstracts the communication logic and makes your communication communication work just like method calls on an object.

+2


source


Is there anything stopping you from extracting logic into a separate assembly that both apps can provide?



+2


source







All Articles