# Writting a Windows Services

**URL:** <https://www.dynamicsuser.net/t/writting-a-windows-services/1511>\
**Category:** General Discussions\
**Created:** [October 10, 2002, 11:19am UTC](https://www.dynamicsuser.net/t/writting-a-windows-services/1511 "2002-10-10T11:19:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarek\_Demiati](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@Tarek\_Demiati](https://www.dynamicsuser.net/u/Tarek_Demiati)\
**Post date:** [October 10, 2002, 11:19am UTC](https://www.dynamicsuser.net/t/writting-a-windows-services/1511/1 "2002-10-10T11:19:48Z")

</div>

Is there a quick and easy (ie: wizard), way to write a Windows services(the one available from the control panel) using VB or Delphi. I know that’s possible writting one using MS Visual C++, but is it also possible to do so from VB or Delphi ??

---

<div class="post-metadata">

**Author:** ![ohlfert](https://avatars.discourse-cdn.com/v4/letter/o/e9c0ed/32.png) [@ohlfert](https://www.dynamicsuser.net/u/ohlfert)\
**Post date:** [October 10, 2002, 4:45pm UTC](https://www.dynamicsuser.net/t/writting-a-windows-services/1511/2 "2002-10-10T16:45:01Z")

</div>

Absolutely from Delphi and C++ Builder.

---

<div class="post-metadata">

**Author:** ![pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@pelle](https://www.dynamicsuser.net/u/pelle)\
**Post date:** [October 10, 2002, 11:33pm UTC](https://www.dynamicsuser.net/t/writting-a-windows-services/1511/3 "2002-10-10T23:33:21Z")

</div>

Tarek, in Delphi, go to File, New… and choose Service Adds a new service to an existing NT service application. Do not add services to an application that is not a service application. While a TService object can be added, the application will not generate the requisite events or make the appropriate Windows calls on behalf of the service. Service Application Creates a new NT service application. Once you have created a service application, You will see a window in the designer that corresponds to a service (TService). Implement the service by setting its properties and event handlers in the Object Inspector. Have never done this myself, but I have seen it done in a demonstration in a couple of minutes. Best regards Pelle

---

<div class="post-metadata">

**Author:** ![Rahimuddin](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Rahimuddin](https://www.dynamicsuser.net/u/Rahimuddin)\
**Post date:** [October 12, 2002, 10:19am UTC](https://www.dynamicsuser.net/t/writting-a-windows-services/1511/4 "2002-10-12T10:19:40Z")

</div>

I 've seen it done using .NET technology in one of the seminars.
