Results 1 to 4 of 4

Thread: Working on two C-Sharp projects.

  1. #1

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Smile 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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Working on two C-Sharp projects.

    TCP sockets would let you do 2-way communication.
    I don't live here any more.

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Working on two C-Sharp projects.

    Quote Originally Posted by wossname
    TCP sockets would let you do 2-way communication.
    That seems like overkill...
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width