Forum

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

Question Tutorial about "Windows Service"

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 months 1 week 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
3 months 6 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
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 months 6 days ago - 3 months 6 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: 3 months 6 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
3 months 4 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
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 months 4 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.