Re: Get Dll functions at compile time

2017-08-09 Thread Moritz Maxeiner via Digitalmars-d-learn
On Wednesday, 9 August 2017 at 02:11:13 UTC, Johnson Jones wrote: I like to create code that automates much of the manual labor that we, as programmers, are generally forced to do. D generally makes much of this work automatable. For example, I have created the following code which makes

Re: Get Dll functions at compile time

2017-08-09 Thread Johnson Jones via Digitalmars-d-learn
Was buggy due to refactoring. module DLLImport; /* Import DLL functions in to type T. The following example shows methodology struct DLL_gdk { @("DLLImport") public static extern(Windows) { @("libgdk-3-0.dll") {

Re: Get Dll functions at compile time

2017-08-08 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 9 August 2017 at 02:11:13 UTC, Johnson Jones wrote: I like to create code that automates much of the manual labor that we, as programmers, are generally forced to do. D generally makes much of this work automatable. For example, I have created the following code which makes