How to proceed with learning to code Windows desktop applications?

I Lindström nota.real at address.com
Thu Feb 1 09:18:30 UTC 2018


On Wednesday, 31 January 2018 at 12:56:31 UTC, Arredondo wrote:
>
> As other have said, WPF and C# is the way to go for Windows GUI 
> programming, but you don't necessarily need to drop D. You 
> could write your interface code in VS and have it call your D 
> library via pinvoke (Platform Invoke). To make this work you 
> must mark your public D functions with extern(C). Read the 
> documentation on extern(C) and PInvoke.
>
> Honestly, I don't know why more people don't do this. It really 
> seems to be like the best of both worlds, as C# + WPF is king 
> for Windows GUI and D is king for library development. The only 
> drawback I can think of is you have to expose your awesome D 
> library via a dumped down C interface.

This was an interesting idea. Thanks.

And thank you all for your ideas and suggestions. I'll try some 
out and see what works.


More information about the Digitalmars-d-learn mailing list