i have a project where i get the ipaddress ping thing. i want to create a windows service which calls it or runs the thread in the project.
i just want to know how do we call the methods of the project in the windows service project.
following is a sample i tried:
Expand|Select|Wrap|Line Numbers
- protected override void OnStart(string[] args)
- {
- Start();
- }
- protected override void OnStop()
- {
- Stop();
- }
i got some eroor when i tried to build this project like:
The name 'Start' does not exist in the current context
i dont know how exactly to call those methods.
one more thing as to how to run the windows service project.
i tried by searching on goolge which states like:
type this at command prompt
InstallUtil C:\tgol\Myservice\Bin\Myservice.exe
i dont understand what this tgol is?
and when i tried this command with my file name i got error like:
'InstallUtil' is not recognized as an internal or external command,
operable program or batch file.
please suggest me some solution.
thank you