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
windows .net vb.net


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 to share


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



+2


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics