digitalmars.D.learn - Windows DLL / Windows service
- Etienne Cimon (10/10) Jun 07 2014 Hello,
- Adam D. Ruppe (3/7) Jun 07 2014 Check this out: http://wiki.dlang.org/Win32_DLLs_in_D
- Etienne (3/10) Jun 07 2014 Looks good ! I couldn't find a more recent example for a service
- Tyler Jensen (8/20) Aug 22 2014 Hope this helps.
Hello, I'm looking to compile a server into a windows service, and there doesn't seem to be any info out there except this : http://forum.dlang.org/thread/c95ngs$1t0n$1 digitaldaemon.com It doesn't call rt_init, would that be the only thing missing from there? Also, the d runtime seems to have a windows dll module https://github.com/D-Programming-Language/druntime/blob/master/src/core/sys/windows/dll.d 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 .
Jun 07 2014
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.
Jun 07 2014
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:Looks good ! I couldn't find a more recent example for a service but it should be similar I guessno 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.
Jun 07 2014
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: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.On Saturday, 7 June 2014 at 14:41:15 UTC, Etienne Cimon wrote:Looks good ! I couldn't find a more recent example for a service but it should be similar I guessno 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.
Aug 22 2014