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
Kingamoon
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
TJB
source
to share
Is there anything stopping you from extracting logic into a separate assembly that both apps can provide?
+2
Teto
source
to share