www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Creating a windows service

reply Etienne Cimon <etcimon gmail.com> writes:
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?
Jun 07 2014
next sibling parent "Kagamin" <spam here.lot> writes:
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
Jun 07 2014
prev sibling next sibling parent "Kagamin" <spam here.lot> writes:
Also - opensearch plugin for msdn search, recommended: 
https://addons.mozilla.org/en-US/firefox/addon/msdn/
Jun 07 2014
prev sibling parent "Tyler Jensen" <tyler tsjensen.com> writes:
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.
Aug 22 2014