Building Win32 application via dub

Sam E. sam.e at example.org
Wed Apr 29 13:12:28 UTC 2020


On Wednesday, 29 April 2020 at 12:26:02 UTC, Mike Parker wrote:
> On Wednesday, 29 April 2020 at 11:55:54 UTC, Sam E. wrote:
>>
>>
>> I cannot find a D example using Win32 and the normal main 
>> function, and while it is working for simple message boxes, as 
>> soon as I want to do something slightly more complex (using a 
>> window), an hInstance has to be provided (as far as I 
>> understand, I'm not that knowledgeable with Win32).
>
> FYI, a quick google turned up this example:
>
> https://gist.github.com/caiorss/e8967d4d3dad522c82aab18ccd8f8304
>
> It's C++ and not D, but the Win32 calls are the same. You 
> should be able to adapt that to D fairly easily.

Thank you a lot Mike, you were really helpful!


More information about the Digitalmars-d-learn mailing list