Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
hi all,


i am writing one small windows service with one method add(int a,int b)....

now i am consuming this method in my c# win form application....

it is possible please help me.................

thanks in advance
Posted
Comments
OriginalGriff 2-Jun-11 4:00am    
What part of this are you having problems with?

This method should be put in implementation a remoting interface using classic remoting or a service contract using WCF, self-hosted, for basic operations. Your Windows Forms application should play a role of the client. There are different scenarios for activation of the remote object on server. More detailed advice would need more information on your requirements. Using this information for key words, you will be able to find all technical details you need though. There are many articles in CodeProject explaining those scenarios, with code samples.

—SA
 
Share this answer
 
v2
Comments
ambarishtv 2-Jun-11 4:18am    
my 5 :)
Sergey Alexandrovich Kryukov 2-Jun-11 4:28am    
Thank you.
--SA
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 2-Jun-11 4:28am    
Quite relevant, my 5.
Teamwork!
--SA
thatraja 2-Jun-11 6:01am    
Good links, 5!
ambarishtv 2-Jun-11 6:03am    
thanks.. raja

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900