[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 966
  • Last Modified:

TService, TServiceApplication


I've written a Simple Win95/98 service
that reads the inbound trafic on a serial device, now i need to write a service for NT and i thought i could use the TService "Wizard" but i can't figure out how the hell it works, it does nothing, i NEVER get to the OnStart

Some SampleCode that uses the TService would be greatly appreciated.
  • 2
1 Solution
take a look here:
many example codes of writing services in nt
Regards Barry
raidosAuthor Commented:
Thanks Barry. I'll try some of those examples and see if any of them will do it for me, a bit sad that no Examples where for the TService included in Delphi though, but you can't get everything you want right?
all i know is that wizard creates one TService object that you can manipulate .Chapter 3 of the Delphi Developers Guide gives two sample Services ,one using threads and one without.  
these are also a couple examples in the help file:
Type in TService in the Delphi help topics index. Go to that page and click on see also. This will take you to an example of a service. If you then go to the next page [>>] you will see another simple service example.
but from what i hear they dont work to well in nt .

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now