Re: Windows DLL / Windows service

2014-08-22 Thread Tyler Jensen via Digitalmars-d-learn

On Saturday, 7 June 2014 at 16:16:28 UTC, Etienne wrote:

On Saturday, 7 June 2014 at 16:07:47 UTC, Adam D. Ruppe wrote:

On Saturday, 7 June 2014 at 14:41:15 UTC, Etienne Cimon wrote:
no documentation though. Any idea how to attach/detach with a 
known example? I'd also like to create a windows DLL that 
compiles through DMD/GDC/LDC with extern(c) so that folks 
from C++ can link with it .


Check this out: http://wiki.dlang.org/Win32_DLLs_in_D

should help you get started.


Looks good ! I couldn't find a more recent example for a 
service but it should be similar I guess


Hope this helps.

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.


Re: Examples of Windows services in D?

2014-08-09 Thread Tyler Jensen via Digitalmars-d-learn

Found this:

https://github.com/alvatar/snippets/blob/086f1714927df1338ac36b3633a3a91034a8347c/d/scrapple/bevutils/ServiceBase.d

Will be exploring it to see if I can make it work.


On Saturday, 9 August 2014 at 05:08:40 UTC, Tyler Jensen wrote:
I am very interested to find a good example for D2 of a Windows 
Service implementation. Can you point me to one?



On Saturday, 7 September 2013 at 13:57:07 UTC, HeiHon wrote:

On Thursday, 23 February 2012 at 01:33:10 UTC, DNewbie wrote:

Here is a simple service in D
http://my.opera.com/run3/blog/2012/02/23/windows-services-in-d
It's basically c translated to d.



This example seems to have 404ed.

Is there an example of a simple service written in D2 
somewhere?


I have a service written in D1 that works just fine. But I 
couldn't get it to work with D2 - I think I ran into the same 
problems as Steve Teale:


http://forum.dlang.org/thread/ic32he$2ifl$1...@digitalmars.com

All other example code I could find also was D1 only.




Re: Examples of Windows services in D?

2014-08-08 Thread Tyler Jensen via Digitalmars-d-learn
I am very interested to find a good example for D2 of a Windows 
Service implementation. Can you point me to one?



On Saturday, 7 September 2013 at 13:57:07 UTC, HeiHon wrote:

On Thursday, 23 February 2012 at 01:33:10 UTC, DNewbie wrote:

Here is a simple service in D
http://my.opera.com/run3/blog/2012/02/23/windows-services-in-d
It's basically c translated to d.



This example seems to have 404ed.

Is there an example of a simple service written in D2 somewhere?

I have a service written in D1 that works just fine. But I 
couldn't get it to work with D2 - I think I ran into the same 
problems as Steve Teale:


http://forum.dlang.org/thread/ic32he$2ifl$1...@digitalmars.com

All other example code I could find also was D1 only.