Thread overview
Creating a windows service
Jun 07, 2014
Etienne Cimon
Jun 07, 2014
Kagamin
Jun 07, 2014
Kagamin
Aug 22, 2014
Tyler Jensen
June 07, 2014
I'd like to compile a D application through LDC as a Windows service, this probably implies that the application would compile as a dll?

Does anyone know if there's an example or some hints on how this should be done, and if it's known to be possible?
June 07, 2014
No, service is a console application.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms685967.aspx
http://stackoverflow.com/questions/18557325/how-to-create-windows-service-in-c-c
http://social.msdn.microsoft.com/Search/en-US/?Query=create+service+windows+c
June 07, 2014
Also - opensearch plugin for msdn search, recommended: https://addons.mozilla.org/en-US/firefox/addon/msdn/
August 22, 2014
On Saturday, 7 June 2014 at 14:34:22 UTC, Etienne Cimon wrote:
> I'd like to compile a D application through LDC as a Windows service, this probably implies that the application would compile as a dll?
>
> Does anyone know if there's an example or some hints on how this should be done, and if it's known to be possible?

I can't help you with LDC but here's my stab at it.

https://github.com/duovia/WindowsServiceInD

I'm using the Windows API library (source actually) on
dsource.org. See link on the github page. I found it difficult to
find a complete solution to the problem, so I'm going to cross
post in a few places to make it easier to find for others seeking
an answer to the same question.