Re: Classes to build a Windows service.

2014-08-22 Thread Tyler Jensen via Digitalmars-d-announce
On Friday, 26 October 2007 at 18:47:43 UTC, Steve Teale wrote: Christoph Singewald Wrote: Hi! Did you put your classes somewhere, I'm interested how you build the service. At the moment I had no luck. tnx christoph Steve Teale Wrote: BCS Wrote: Reply to Steve, I've built a set

Re: Windows service in D

2014-08-22 Thread Tyler Jensen via Digitalmars-d
Ten years is a long time but perhaps this can help anyone running into this forum thread. 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

Re: $100 bounty for help with Windows Service code

2014-08-22 Thread Tyler Jensen via Digitalmars-d
On Friday, 22 August 2014 at 09:09:22 UTC, Kagamin wrote: https://github.com/duovia/WindowsServiceInD/blob/master/src/onedge/mysvc.d#L20 these are not necessarily static: it makes sense to have instance fields of shared types too. Yes, Kagamin, you're right. I'll pull those out of shared as

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

Re: $100 bounty for help with Windows Service code

2014-08-21 Thread Tyler Jensen via Digitalmars-d
On Monday, 18 August 2014 at 21:23:38 UTC, Vladimir Panteleev wrote: On Monday, 18 August 2014 at 21:12:15 UTC, Tyler Jensen wrote: On Monday, 18 August 2014 at 18:24:15 UTC, Etienne wrote: http://www.dsource.org/projects/bindings/wiki/WindowsApi Browse the source of the latter link and

Re: $100 bounty for help with Windows Service code

2014-08-18 Thread Tyler Jensen via Digitalmars-d
On Monday, 18 August 2014 at 15:42:26 UTC, Vladimir Panteleev wrote: On Monday, 18 August 2014 at 15:12:58 UTC, Etienne wrote: Shouldn't you be starting with rt_init() in ServiceMain? The runtime should be already initialized before main() is run, however, now that you mention it, I think

Re: $100 bounty for help with Windows Service code

2014-08-18 Thread Tyler Jensen via Digitalmars-d
On Monday, 18 August 2014 at 18:24:15 UTC, Etienne wrote: On 2014-08-18 11:38 AM, Vladimir Panteleev wrote: Which git mirror are you talking about? Oh! I really thought it was this: https://github.com/AndrejMitrovic/WindowsAPI That's because there's a link to it on the dsource page

$100 bounty for help with Windows Service code

2014-08-17 Thread Tyler Jensen via Digitalmars-d
$100 bounty offered! I've coded up a Windows Service that ALMOST works but I'm missing something. I need your help. I obtained some code from another forum user who had obtained it from another forum. I've modified and simplified to the best of my limited ability. Install and uninstall

Re: $100 bounty for help with Windows Service code

2014-08-17 Thread Tyler Jensen via Digitalmars-d
On Sunday, 17 August 2014 at 22:38:38 UTC, Vladimir Panteleev wrote: On Sunday, 17 August 2014 at 21:24:24 UTC, Tyler Jensen wrote: Despite the error, the process runs and the ServiceMain is called and the worker thread executes as you can see from the following logging output: [[ main

Re: $100 bounty for help with Windows Service code

2014-08-17 Thread Tyler Jensen via Digitalmars-d
On Sunday, 17 August 2014 at 23:56:56 UTC, Tyler Jensen wrote: GetLastError on both returns 0. I had misread the SetServiceStatus documentation and was assuming a 0 was success. Am looking into that. I'm also trying to figure out how to get access to the message box you mentioned. I also

Re: $100 bounty for help with Windows Service code

2014-08-17 Thread Tyler Jensen via Digitalmars-d
On Monday, 18 August 2014 at 00:07:57 UTC, ketmar via Digitalmars-d wrote: On Sun, 17 Aug 2014 23:56:54 + Tyler Jensen via Digitalmars-d digitalmars-d@puremagic.com wrote: try to catch and process exceptions where they may arose. any file operation can throw exception (yes, even innocent

Re: $100 bounty for help with Windows Service code

2014-08-17 Thread Tyler Jensen via Digitalmars-d
On Monday, 18 August 2014 at 01:11:37 UTC, Vladimir Panteleev wrote: On Monday, 18 August 2014 at 00:37:15 UTC, Tyler Jensen wrote: On Monday, 18 August 2014 at 00:07:57 UTC, ketmar via Digitalmars-d wrote: On Sun, 17 Aug 2014 23:56:54 + Tyler Jensen via Digitalmars-d digitalmars-d

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

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