|
-
Feb 27th, 2008, 11:48 PM
#1
Thread Starter
PowerPoster
Working on two C-Sharp projects.
Hi all,
I have two C# project. One is a C# .Net service and the other one is a Dialog based C# project. From the dialog based project, using a button click I want start the service and do all required processing. Its simple, I used a serviceController component and do it.
Now I want to make a slight change. On the button click event I want to send some parameters to the service and use it in the service. How can I do that.
In simple work how can I access from one project to the other
Thanks.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Feb 28th, 2008, 05:58 AM
#2
Re: Working on two C-Sharp projects.
I assume your windows service has the usual Main(args[])? You can send the string based parameters in the ServiceController.Start() method.
Look here http://msdn2.microsoft.com/en-us/library/9c38b683.aspx
-
Feb 28th, 2008, 07:34 AM
#3
Re: Working on two C-Sharp projects.
TCP sockets would let you do 2-way communication.
I don't live here any more.
-
Feb 28th, 2008, 11:27 AM
#4
Re: Working on two C-Sharp projects.
 Originally Posted by wossname
TCP sockets would let you do 2-way communication.
That seems like overkill...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|