Forum

× General Forum discussions that don't fit in any of the other specific forum categories, help etc.

Question Tutorial about "Windows Service"

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
7 months 3 weeks ago #11346 by Federico Melillo
Tutorial about "Windows Service" was created by Federico Melillo
I'm looking for a tutorial to implement a "Windows Service".
I created a very simple Daemon application, but when I install and start it ...don't start.

F.Melillo

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #11347 by Adriano Soares
Replied by Adriano Soares on topic Tutorial about "Windows Service"
Take a look at this doc. and sample.
as the master said "Work and be happy"
Attachments:
The following user(s) said Thank You: Federico Melillo

Please Log in or Create an account to join the conversation.

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
7 months 2 days ago #11402 by Federico Melillo
Replied by Federico Melillo on topic Tutorial about "Windows Service"
Hi,
in attachment there is my simple "service-project" that install but it doesn't start.

Is there anybody that can help me?

File Attachment:

File Name: L2_Daemon.zip
File Size:81 KB
Attachments:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 months 2 days ago #11407 by Sternas Stefanos
Replied by Sternas Stefanos on topic Tutorial about "Windows Service"
Thanks Sir
please give us time to test your project

CodeTyphon Architect and Programmer

Please Log in or Create an account to join the conversation.

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 3 weeks ago #11453 by Federico Melillo
Replied by Federico Melillo on topic Tutorial about "Windows Service"
Is there anybody that can help me?

Please Log in or Create an account to join the conversation.

More
6 months 3 weeks ago #11457 by Matis A.
Replied by Matis A. on topic Tutorial about "Windows Service"
Sorry
we forgot this
I try to run now OK

CodeTyphon Core Programmer

Please Log in or Create an account to join the conversation.

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 2 weeks ago #11471 by Federico Melillo
Replied by Federico Melillo on topic Tutorial about "Windows Service"
Is there any news?

Fed.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 months 2 weeks ago #11473 by Sternas Stefanos
Replied by Sternas Stefanos on topic Tutorial about "Windows Service"
No yet Sir :blush:

In our lab now we are only 2 programmers and many friends ...
it's Saturday night...
and the only Lab task we can run is to fix pl_FortesReport package

CodeTyphon Architect and Programmer

Please Log in or Create an account to join the conversation.

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 1 week ago #11484 by Federico Melillo
Replied by Federico Melillo on topic Tutorial about "Windows Service"
Okay.

Don't forget me. ;-)

Fed.

Please Log in or Create an account to join the conversation.

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 6 days ago #11510 by Federico Melillo
Replied by Federico Melillo on topic Tutorial about "Windows Service"
..zZz..

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 months 6 days ago #11511 by Sternas Stefanos
Replied by Sternas Stefanos on topic Tutorial about "Windows Service"
Sir
we put some samples in CodeOcean for TIdTCPServer
for sample
codetyphon\CodeOcean\pl_Indy\samples\4B_MemoryStream_Exchange\server\memorystream_server.ctpr

Please look the methodology of using TIdTCPServer

CodeTyphon Architect and Programmer

Please Log in or Create an account to join the conversation.

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 5 days ago #11512 by Federico Melillo
Replied by Federico Melillo on topic Tutorial about "Windows Service"
Ok,
but the sample in CodeOcean is an application and not a Windows service.
Is it right or am I wrong? Or exists another sample in "Windows service" mode?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 months 5 days ago - 6 months 5 days ago #11513 by Sternas Stefanos
Replied by Sternas Stefanos on topic Tutorial about "Windows Service"
1) First build your
TCP Server
test your server

2) Then you can try to make your TCP Server "service" if you want

look at
codetyphon\CodeOcean\aa_LCLBasics\samples\cleandir\cleandirs.ctpr
sample.

On windows only, you must use

Regsvr32 to register register your daemon app first....

command prompt
Regsvr32 -h
for more info

In other case you will get (OS Code 5) Access is denied

CodeTyphon Architect and Programmer
Last edit: 6 months 5 days ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Federico Melillo
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 3 days ago #11516 by Federico Melillo
Replied by Federico Melillo on topic Tutorial about "Windows Service"
Thanks a lot. :-)
I will implement it.

Naturally this is a "workaround" becouse it solve not about how to create a Windows Service.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 months 3 days ago #11517 by Sternas Stefanos
Replied by Sternas Stefanos on topic Tutorial about "Windows Service"
Sir
Please don't forget Windows Service Applications are from "OS Side" and NOT from "user Side"
so, not the same programming approach.

Anyway, have fun in "Deep Blue programming Sea" :woohoo:

CodeTyphon Architect and Programmer

Please Log in or Create an account to join the conversation.