views:

687

answers:

4

I have created a Windows service with using that service. How will I call a Windows application?

+1  A: 

Walkthrough: Creating a Windows Service Application in the ...

http://msdn.microsoft.com/en-us/library/zt39148a(VS.80).aspx

ratty
+1  A: 

You have to pick a Windows service from the project type in Visual Studio. If you meant how can you host an application as a Windows service, the only way to do this is to create a new project of type Windows Service and use the Process class.

You can then create an install class and then use installutil or alternatively, use sc from the command line to install it.

Matt
+3  A: 

Windows services and Windows applications are completely different programs. Windows services are automatically started when the computer boots, have no user interface and have different security context than logged in user. You can't simply convert a Windows application to a Windows service (and expect it to run smoothly). If you want your program to always run (24/7) with no user interface then you can look into Windows services.

More on Windows services: "Windows Service vs Windows Application - Best Practice" and "Windows Service Applications".

PRR
k fine .plz suggest me some more ideas how to run my application as service
ush
I have created windows application know i have to run this as a service plz tell me ur ideas
ush
@ush: Did you even read that response? PRR just gave you a good answer to a pretty vague question. That is more than enough to get you started. If you are still struggling after following (and reading) those links, post a more detailed question. (p.s. you might want to address your accept rate too, doesn't really inspire people to help you out)
Bryan
A: 

Hey, you can easily run ANY application as Windows service with this utility - Application As Service by Eltima

Jimmy
thank u so much for all
ush